{"errcode":200006,"errmsg":"content-type only support application/json or multipart/form-data rid: 62f61dbb-272989f0-2fac447e"}
只有这个接口出现问题,其他接口都正常
$data = <<<phpstring
{
"status": 5,
"page": 1,
"page_size": 500,
"need_edit_spu": 0
}
phpstring;
$rs = curlPost("https://api.weixin.qq.com/product/spu/get_list?access_token=$access_token",$data);
echo $rs;

同样的问题,楼主解决了吗
可以填下 content-type 为 application/json
如果加了http header,微信api就会多返回一堆头部信息!
微信api服务器用的express 都爆出来了
HTTP/1.1 200 OK Connection: keep-alive Keep-Alive: timeout=5 Date: Fri, 12 Aug 2022 10:16:14 GMT ETag: W/"5f-5E3pA/+ApVFm+plEGqVo1jZmXbY" Content-Type: application/json; charset=utf-8 X-Powered-By: Express Content-Length: 127 {"errcode":200006,"errmsg":"content-type only support application/json or multipart/form-data rid: 62f6286e-172714a4-1b081e17"}