url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" + ACCESS_TOKEN
adata = {
"touser":"or6mm5r-brRLSnAXX4W5SSnvuapw",
"template_id": "kw-K7VKs_R1IEm0HUJFrXy3TiZ3FDuwcpn8Dj94utgs",
"page": "http://adr.adrationale.com",
"data": {
"thing1": {
"value": "C语言程序设计"
},
"time5": {
"value": "11:00"
},
"name8": {
"value": "唐老师"
},
"thing9": {
"value": "请务必带好课程教材及学员签到证进行签到哦~"
},
"name14": {
"value": "张三"
}
}
}
提示:
{"errcode":40037,"errmsg":"invalid template_id rid: 61a78257-60807c1e-0158a7db"}
access_token 对应的服务号模板消息中有这个模板ID吗?如果有,确认下自己post请求是否正确,使用http请求捕捉工具抓一下看看。