收藏
回答

调用公众号模板消息接口发送消息一直报格式错误,但是检查并无错误,请问如何解决?

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:

'https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=37_S7_WxJhjXxpZkCWVtHoVqErAF6mfT8O40QvUGxTuT7bK69G10OFAnCpPGvd87Z5ZxPmIrUe2MQJ7LDhI-lu8oBJLmVssgfbyIk4I-Zjk_fC08_ezMVr6EHhXOln1y9jFJmVVeq_Z66DBAdtZNULgADASZQ',

userInfo:

{ appId: 'xxxxxxxxxxxxxx',

openId: 'xxxxxxxxxxxxxxxxxxxxx' } }


返回为:

{"errcode":47001,"errmsg":"data format error rid: 5f6a00bb-28326d86-3c36559f"}


请问如何解决?

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签