uni-id发送短信验证码失败,提示错误代码50301,使用如下代码:
const result = await uniID.sendSmsCode({
mobile: event["phone"],
templateId: "uni_sms_test",
type: "login"
})
console.log(result)
config.json中已填写secret和key,提示以下报错信息:
{"code":50301,"errCode":"uni-id-send-sms-code-failed","errMsg":"验证码发送失败","msg":"验证码发送失败","message":"验证码发送失败"}
后来参考下官方文档,发现mobile参数类型必须为:string
uni-id是什么:
https://uniapp.dcloud.io/uniCloud/uni-id.html
暂无评论,抢个沙发...