u
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user