perf: 短信验证码支持腾讯云

This commit is contained in:
xiaojunnuo
2025-08-28 17:35:17 +08:00
parent 992bac0b1f
commit 9108459ae4
7 changed files with 140 additions and 9 deletions
@@ -83,7 +83,7 @@ export class CodeService {
}
const smsType = sysSettings.sms.type;
const smsConfig = sysSettings.sms.config;
const sender: ISmsService = SmsServiceFactory.createSmsService(smsType);
const sender: ISmsService = await SmsServiceFactory.createSmsService(smsType);
const accessGetter = new AccessSysGetter(this.accessService);
sender.setCtx({
accessService: accessGetter,