小程序 已经申请了长期模板,但是 调用接口发送时 报错 说 {"errcode":40037,"errmsg":"invalid template_id rid: 6641db8d-67193572-74d8045b"},
发送接口请求的json
{"touser":"ouWrH6w2D7ACCz-A5kjIv83nwzuI","templateId":"FoqTtnwkzbInuc7jS98M466GNt8wQqdqrubl_JQwxZ4","page":"/pages/server/server","data":{"thing2":{"value":"请进入小程序完成今日步数记录"},"name3":{"value":"老肖"},"thing4":{"value":"走20000步路"},"thing1":{"value":" 记录走路"}},"miniprogram_state":"formal","lang":"zh_CN"}
确认过了 appid 和 secret 都一致,temp id 也是。
https://api.weixin.qq.com/cgi-bin/message/device/subscribe/send 接口调错了