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('验证码错误'); } }