后端验证服务成功返回true

This commit is contained in:
2025-05-12 10:22:18 +08:00
parent 17c065ae79
commit 369fe28c5c

View File

@@ -31,6 +31,7 @@ export class VerificationService {
// await this.notificationService.sendSMS(phone, type, code);
// 存储验证码
this.saveCode(key, code);
return true;
}
async sendEmailCode(email: string, type: 'login') {
@@ -46,6 +47,7 @@ export class VerificationService {
// 存储验证码
this.saveCode(key, code);
return true;
}
private saveCode(key: string, code: string) {