From f5d5dab21957ac6bb58f851de5d596325bd411e7 Mon Sep 17 00:00:00 2001 From: rustdreamer Date: Tue, 27 Feb 2024 17:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.controller.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);