未验证 提交 e1393e05 编写于 作者: W wanganxp 提交者: GitHub

Update send-sms.md

上级 ae415e67
......@@ -87,27 +87,6 @@ exports.main = async (event, context) => {
}
};
// 如果不使用await
uniCloud.sendSms({
smsKey: '****************',
smsSecret: '****************',
phone: '188********',
templateId: 'uniID_code',
data: {
name: 'DCloud',
code: '123456',
action: '注册',
expMinute: '3',
}
}).then((res)=>{
// 调用成功,请注意这时不代表发送成功
console.log(res)
}).catch((err)=>{
// 调用失败
console.log(err.message)
})
```
本示例发送的短信,在手机上将显示为:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册