curl -H "Content-Type:application/json" -X POST -d '{"touser":"小程序openid","mp_template_msg":{"appid":"公众号appid","template_id":"公众号模板id","url":"home","miniprogram":{"appid":"小程序ID","page":"\/home\/index"},"data":{"number1":{"value":537},"time2":{"value":"2021\/08\/26 06:33"},"time3":{"value":"2022\/08\/26 06:33"},"thing4":{"value":"\u60a8\u5728\u5bff\u53f8\u90ce\u7684\u79ef\u5206\u5373\u5c06\u5728365\u5929\u540e\u5230\u671f\u3002"}}}}' 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=48_k8PzX1RHGxkZuv9mgppUCI-cZhdyQTbqcwfFp8-wssVUIVMniJZcSj28X9p_efeZuC0MTIkC11S_uciXm5wJBRoLjEVjwx7LQOCfHuFG1V1KcvzalpedxzpnF5nnvi0Uzx3_hKbP8zULsFuMYHEjAGALUR'
{"errcode":40037,"errmsg":"invalid template_id rid: 61274c56-4432d5d8-1233a540"}
请问是什么原因呢?
公众号小程序已互相绑定,并已确认appid及openid,模板id正确。
你好,40037的原因是:miniprogram里的appid不正确,或者appid对应的小程序和发送模板消息的服务号没有绑定关系。
请问解决了吗
主体是否一致呢?