This commit is contained in:
2023-12-06 16:44:46 +08:00
parent 441f3fed31
commit e76f4a7b95
+1 -1
View File
@@ -50,7 +50,7 @@ trait WxV3PaymentTait
*/ */
public function createClient(string $sign, string $json): Client public function createClient(string $sign, string $json): Client
{ {
$client = new Client('api.mch.weixin.qq.com', 443, TRUE); $client = new Client('api.mch.weixin.qq.com', 80, TRUE);
$client->withAddedHeader('Authorization', $sign) $client->withAddedHeader('Authorization', $sign)
->withContentType('application/json')->withAddedHeader('User-Agent', 'application/json') ->withContentType('application/json')->withAddedHeader('User-Agent', 'application/json')
->withAddedHeader("Accept", "*/*"); ->withAddedHeader("Accept", "*/*");