perf: 验证码可重试次数设置为3次

This commit is contained in:
xiaojunnuo
2025-08-09 16:59:48 +08:00
parent a6824d9cd0
commit 1bdceeecf4
3 changed files with 14 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ export class CodeService {
buildEmailCodeKey(email: string, randomStr: string, verificationType?: string) {
return ['email', verificationType, email, randomStr].filter(item => !!item).join(':');
}
checkValidateCode(key: string, userCode: string, throwError = true, errorNum = 0) {
checkValidateCode(key: string, userCode: string, throwError = true, errorNum = 3) {
// 记录异常次数key
const err_num_key = key + ':err_num';
//验证图片验证码