验证码错误判断

This commit is contained in:
COOL 2023-06-07 14:46:20 +08:00
parent 26b0e37dc2
commit 8477c28590

View File

@ -72,6 +72,8 @@ export class UserLoginService extends BaseService {
await this.userInfoEntity.insert(user); await this.userInfoEntity.insert(user);
} }
return this.token({ id: user.id }); return this.token({ id: user.id });
}else{
throw new CoolCommException('验证码错误');
} }
} }