返回结果
{"errCode":-501007,"errMsg":"openapi.cloudbase.sendSms:fail TemplateId not exist TcbCode: [InvalidParameter] rid: 62d66910-27fb1c1b-7ad7a692"}
日志
START
REPORT RequestId:faed9107-ca4b-4f97-99ca-4ea691a23dd4 Duration:746ms Memory:256MB MemUsage:25.441406MB
END
参数
sendApplyNoticeSMS(){
wx.cloud.callFunction({
name:'sendSMS',
data:{
mobileList: ['+86186********', '+86139********'],
smsType: 'Notification',
//smsContent: '你好',
//useShortName: false,
templateParamList: ["66"],
templateId: '1478989'
}
})
},
网友回复
Rui:
云函数代码有嘛
杨勇:
查询了rid信息,提示
{
"errcode": 40001,
"errmsg": "invalid credential, access_token is invalid or not latest rid: 62d6761d-5d2379af-44aced2d"
}
40001错误解释是:获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口
access_token 时 AppSecret 在云调用的时候也需要配置么?