提交 7d4a6392 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update cf-functions.md

上级 e218f684
......@@ -681,7 +681,7 @@ exports.main = async (event, context) => {
}
}
let phoneList = res.data.map(item => item.phone)
res = await uniCloud.sendSms({
let sendSmsRes = await uniCloud.sendSms({
phoneList,
appid: '__UNI__xxxxxxx',
smsKey: '****************',
......@@ -692,8 +692,8 @@ exports.main = async (event, context) => {
text2: 'xxx'
}
})
if (res.errCode) {
return res
if (sendSmsRes.errCode) {
return sendSmsRes
}
return {
errCode: 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册