提交 1937c10f 编写于 作者: 雪洛's avatar 雪洛

fix: send sms error

上级 9aa672ec
......@@ -45,7 +45,7 @@ async function sendSmsCode ({
action = this.t('verify-mobile')
break
}
const sceneConfig = smsConfig.scene || {}
const sceneConfig = (smsConfig.scene || {})[scene] || {}
if (!templateId) {
templateId = sceneConfig.templateId
}
......
......@@ -13,5 +13,7 @@
"uni-id-common": "file:../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common",
"uni-open-bridge-common": "file:../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common"
},
"extensions": {}
}
"extensions": {
"uni-cloud-sms": {}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册