收藏
回答

公众号模板消息47001?

request to URL :  https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=access_token

Post parameters : {"touser":"oBhk76ovfS9KGjpQOjXxzZFQQTnE","template_id":"20EM20ERzHikaqnLgErOn5nzashcyrcoOqaWZjI1cN8","data":{"thing2":{"value":"yh"},"character_string1":{"value":"123456"}},"url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appid&redirect_uri=https%3A%2F%2Fwww.xxx.com%2Fxtr%2Fpage%2Flogin&response_type=code&scope=snsapi_base&state=123#wechat_redirect"}

Response Code : 200

{"errcode":0,"errmsg":"ok","msgid":3599307433715204104}


request to URL : https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=access_token

Post parameters : {"touser":"oBhk76ovfS9KGjpQOjXxzZFQQTnE","template_id":"TxFjF2vfpbCLf9gwD6o2fA97--CB2fpabsnPbjeD1ww","data":{"character_string7":{"value":"123456"},"amount10":{"value":"18"},"amount15":{"value":"17868"},"thing5":{"value":"手撕面包大商汇店"}},"url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appid&redirect_uri=https%3A%2F%2Fwww.xxx.com%2Fxtr%2Fpage%2Flogin&response_type=code&scope=snsapi_base&state=123#wechat_redirect"}

Response Code : 200

{"errcode":47001,"errmsg":"data format error rid: 66c419fc-410bb46d-46565a66"}


request to URL : https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=access_token

Post parameters : {"touser":"oBhk76ovfS9KGjpQOjXxzZFQQTnE","template_id":"s0R2Nu6ljInz5iE_RtOrl4AZyCmFn98XP8XvycIjrZI","data":{"thing8":{"value":"yh123456"},"amount7":{"value":"¥1000元"},"amount11":{"value":"¥18868元"},"time6":{"value":"2024年08月20日"},"thing4":{"value":"手撕面包大商汇店"}},"url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appid&redirect_uri=https%3A%2F%2Fwww.xxx.com%2Fxtr%2Fpage%2Flogin&response_type=code&scope=snsapi_base&state=123#wechat_redirect"}

Response Code : 200

{"errcode":47001,"errmsg":"data format error rid: 66c41bcf-69da1936-174b6cff"}


为什么第二个和第三个请求会报错?

回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容