Closed fengerwoo closed 3 years ago
好像更新新接口了,但是调用也是 400 Bad Request
调用接口:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/ 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/applyment4sub/chapter3_1.shtml
不然调试接口的时候,抛出400,500的header错误,哪里出问题都不知道
$resp = $client->request('GET', 'https://api.mch.weixin.qq.com/v3/...', [ // 注意替换为实际URL
'headers' => [ 'Accept' => 'application/json' ],
"http_errors" => false, // <--- http_errors 设置为false
]);
调用接口:https://api.mch.weixin.qq.com/applyment/micro/getstate
文档地址:https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=19_3