- 当前 Bug 的表现(可附上截图)
不管touser里的openid怎么填都是40003
- 预期表现
应该能正常推送模板消息
- 复现路径
- 提供一个最简复现 Demo
testSubmit: function (e) {
var self = this;
let _access_token = “15_9CWfZCFBv4nh-izRESyhPnLL_8nSP5dSOXEX-LJ10ByL0NHc_63rJmw8n0ze3VkM9rNBYiytzc_tWIsns88uehGoyyNv6mmO4akXO3IpPg3BfV52DWCH3CTr3we6wI9vv8xkd9Ig8Shh1RnoBFPdAJARVF”;
let url = ‘https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=’ + _access_token;
wx.request({
“touser”: “obrb94xfmTE8xclOBdk2YbLVBcR4”,
“template_id”:
“SJig96nX6aatmjuW9gTpa-QQQm4Xg8meFGAfm9l - 4L8”,
“url”: url,
// “page”: “pages/index/index”,
“form_id”: e.detail.formId,
“data”: {
“keyword1”: { “value”: “22”, “color”: “#173177” },
“keyword2”: { “value”: “33”, “color”: “#173177” },
“keyword3”: { “value”: “44”, “color”: “#173177” },
“keyword4”: { “value”: “666”, “color”: “#173177” },
},
“method”: “POST”,
“header”: {
“content-type”: “application/json”
},
success: function (res) {
console.log(res)
},
fail: function (err) {
console.log('request fail ', err);
},
complete: function (res) {
console.log(“request completed!”);
}
})
}
大佬帮我看下到底是什么问题啊。什么文档都看遍了也没成功,在手机上测试也是40003.