微信小程序获取二维码:报错47001 data format error

我这里是使用Postman测试的B类接口:https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=XXX.

总是报错:

{"errcode":47001,"errmsg":"data format error hint: [WqXQEA06804522]"} 

最好找到的原因是,不能使用form-data的body形式,而是要用raw形式,然后输入json格式的参数,如图:
这里写图片描述

感谢此文作者提供的答案:
https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=0002eed6a9c9b8d9322718aa251004&highline=47001&token=&lang=zh_CN

猜你喜欢

转载自blog.csdn.net/KevinsCSDN/article/details/81303437