小程序订阅消息报错40037?
发布于 5 年前 作者 chao71 14160 次浏览 来自 官方Issues

url:https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=40_7mmOtoBw2H61IfuIXNZHl27L4EXPuwqLws9rxtmTbEaSCszu4rApLjfjMsOzzQIElCpYoqtOUDCX8hQ1q9qtl_1AYLfVJqzXdEWAW7p4uf3HaglXnXK7EVa3BHrcq-dUiLPImGWi52D3V40rXWEgAAADCK - data:{“access_token”:“40_7mmOtoBw2H61IfuIXNZHl27L4EXPuwqLws9rxtmTbEaSCszu4rApLjfjMsOzzQIElCpYoqtOUDCX8hQ1q9qtl_1AYLfVJqzXdEWAW7p4uf3HaglXnXK7EVa3BHrcq-dUiLPImGWi52D3V40rXWEgAAADCK”,“data”:{“time4”:{“value”:“2020-12-10 09:31”},“amount2”:{“value”:“99.0”},“thing3”:{“value”:“无门槛券”},“thing5”:{“value”:“2021-02-08 09:31”},“thing1”:{“value”:“抵扣福利券”}},“template_id”:“61AUrd22JNQ-9AbyUdRRBz7YvQhdWoXVfYMXnuUH2hM”,“touser”:“oSnlc5IXWLEz-lXufPw8vYjxOAGM”} - res:{“errcode”:40037,“errmsg”:“invalid template_id rid: 5fd17a7f-42dff658-5fe8dc80”}

appid:wx964f73af1ac83a77

模板id:61AUrd22JNQ-9AbyUdRRBz7YvQhdWoXVfYMXnuUH2hM

1 回复

前端在使用wx.requestSubscribeMessage()时传入的tmpIds要与后端调用https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN这个接口的入参template_id保持一致

回到顶部