diff --git a/src/app.controller.ts b/src/app.controller.ts index aa8f01a..c8d4f50 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -519,7 +519,11 @@ export class AppController { throw new BadRequestException("数据不存在") } if (node_other_visitor.end_time) { - throw new BadRequestException("拜访已结束") + // throw new BadRequestException("拜访已结束") + return { + code: 400, + message: "拜访已结束" + } } node_other_visitor.end_time = new Date(); const result = await this.nodeOtherVisitorRepository.save(node_other_visitor);