fix: 发送证书到邮箱插件的邮件模版转为使用邮箱配置中的通用模版

This commit is contained in:
xiaojunnuo
2025-12-16 22:07:39 +08:00
parent 4c6dcddf11
commit c5a3003cf7
6 changed files with 61 additions and 72 deletions

View File

@@ -108,9 +108,7 @@ export class CodeService {
await this.emailService.sendByTemplate({
type: templateData.notificationType,
data: templateData,
email:{
receivers: [email],
},
receivers: [email],
});
const key = this.buildEmailCodeKey(email,opts?.verificationType);

View File

@@ -123,9 +123,7 @@ export class EmailService implements IEmailService {
content: '测试邮件,from certd',
url:"https://certd.handfree.work",
},
email: {
receivers: [receiver],
},
receivers: [receiver],
});
}
@@ -186,8 +184,9 @@ export class EmailService implements IEmailService {
content = await addon.buildDefaultContent({ data: req.data })
}
return await this.send({
...req.email,
...content
...content,
receivers: req.receivers,
attachments: req.attachments,
})
}
}