确认了,template_id是从公众号订阅消息模板复制过来的,应该不会错
appid是对的,服务号模板消息也是对的,但是40037报错curl -H "Content-Type:application/json" -X POST -d '{"touser":"osyIm5XR1GaNI3JknNntWo_DBIfk","mp_template_msg":{"appid":"公众号ID","template_id":"公众号模板ID","url":"home/index","miniprogram":{"appid":"小程序ID","pagepath":"\/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: 6127508c-114eb016-5d239dda"}
2021-08-26我也碰到同样的问题,麻烦问下解决了么?
统一服务消息 /send uniformMessage.send接口 40003错误?{"errcode":40003,"errmsg":"invalid openid rid: 60ac71ac-286cb7f1-66f2aba3"} 发送的数据:{"mp_template_msg":{"appid":"wx19eec3a9403dfbec","data":{"keyword5":{"color":"#000000","value":"1小时50毫米"},"keyword3":{"color":"#000000","value":"65.5毫米"},"keyword4":{"color":"#000000","value":"最大1小时雨量为52毫米"},"keyword1":{"color":"#000000","value":"慈垭水库"},"keyword2":{"color":"#173177","value":"9月5日11时~9月6日11时"},"remark":{"color":"#FF0000","value":"请注意查看"},"first":{"color":"#FF0000","value":"测试---实况降水告警(过去24小时)"}},"miniprogram":{"appid":"wx027cc4e86901b1b2","pagepath":"pages/login/none"},"template_id":"Q79dINS5pzg8zcyybXjkJEd9OTYeIFTggL0G4Jm5Pxg","url":"https://www.qq.com"},"touser":"oJ_Wy4oPq3-uQhe2z9KzcBrM5nZk"} 模版id:Q79dINS5pzg8zcyybXjkJEd9OTYeIFTggL0G4Jm5Pxg openid :oJ_Wy4oPq3-uQhe2z9KzcBrM5nZk 公众号APPID:wx19eec3a9403dfbec 小程序APPID:wx027cc4e86901b1b2
2021-08-26