perf: 选项显示图标

This commit is contained in:
xiaojunnuo
2024-11-30 01:57:09 +08:00
parent 7b55337c5e
commit aedc462135
54 changed files with 298 additions and 52 deletions

View File

@@ -56,7 +56,7 @@ export class CodeService {
}
/**
*/
async sendSmsCode(phoneCode, mobile, randomStr) {
async sendSmsCode(phoneCode = '86', mobile: string, randomStr: string) {
console.assert(phoneCode != null && mobile != null, '手机号不能为空');
console.assert(randomStr != null, 'randomStr不能为空');
@@ -83,6 +83,7 @@ export class CodeService {
cache.set(key, smsCode, {
ttl: 5 * 60 * 1000, //5分钟
});
return smsCode;
}
/**
@@ -102,6 +103,7 @@ export class CodeService {
cache.set(key, code, {
ttl: 5 * 60 * 1000, //5分钟
});
return code;
}
/**