From 8477c285909e85777fe586772d88e69b46fd97d2 Mon Sep 17 00:00:00 2001 From: COOL Date: Wed, 7 Jun 2023 14:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/user/service/login.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/user/service/login.ts b/src/modules/user/service/login.ts index b5f6620..ea9039c 100644 --- a/src/modules/user/service/login.ts +++ b/src/modules/user/service/login.ts @@ -72,6 +72,8 @@ export class UserLoginService extends BaseService { await this.userInfoEntity.insert(user); } return this.token({ id: user.id }); + }else{ + throw new CoolCommException('验证码错误'); } }