hi, 请求接口:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=xxx
请求为:
{ body:
'{"touser":"oJZx95d39NJ29lYY1LzKr9ovJcdI","template_id":"shLLzmPiWVWuG9JgRB5wBNvFcdT34pGgLKVrBcop6xI","appid":"wx3861ea927254e337","data":{"first":{"value":"你的审核申请已通过"},"keyword1":{"value":"iPhone 6 设计团队"},"keyword2":{"value":"8 人"},"remark":{"value":"点击进入团队"}}}',
method: 'POST',
url:
userInfo:
{ appId: 'xxxxxxxxxxxxxx',
openId: 'xxxxxxxxxxxxxxxxxxxxx' } }
返回为:
{"errcode":47001,"errmsg":"data format error rid: 5f6a00bb-28326d86-3c36559f"}
请问如何解决?
网友回复
stop eating:
单纯的考虑是json,是没错。微信那边收到的是不是json,就是另一回事了。亮代码吧