This commit is contained in:
Luk
2026-02-07 11:35:19 +08:00
parent d27531ea00
commit 440e8be2e7
2 changed files with 15 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ module.exports = {
)
},
async sendSmsTencent ({ phone, config, msgTemplate, msgParam, appid, signName } = {}) {
async sendSmsTencent ({ phone, config, msgParam, msgTemplate, appid, signName } = {}) {
sender.smsClientTencent = sender.smsClientTencent || new (require('tencentcloud-sdk-nodejs').sms.v20210111.Client)(config) // https://cloud.tencent.com/document/product/382/43197
return await sender.smsClientTencent
@@ -176,7 +176,8 @@ module.exports = {
)
},
async sendSmsUnicloud ({ phone, config, msgTemplate, msgParam, appid } = {}) {
async sendSmsUnicloud ({ phone, config, msgParam, msgTemplate, appid } = {}) {
// https://doc.dcloud.net.cn/uniCloud/sms/dev.html
try {
const result = await uniCloud.sendSms({
appid: appid || config.smsAppid,