eee
This commit is contained in:
@@ -53,8 +53,10 @@ trait WxV3PaymentTait
|
||||
$client = new Client('api.mch.weixin.qq.com', 443, TRUE);
|
||||
$client->withAddedHeader('Authorization', $sign)
|
||||
->withContentType('application/json')->withAddedHeader('User-Agent', 'application/json')
|
||||
->withBody($json)->withAddedHeader("Accept", "*/*");
|
||||
|
||||
->withAddedHeader("Accept", "*/*");
|
||||
if (empty($json)) {
|
||||
$client->withBody($json);
|
||||
}
|
||||
$proxyHost = $this->getPayConfig()->getProxyHost();
|
||||
$proxyPort = $this->getPayConfig()->getProxyPort();
|
||||
if (!empty($proxyHost) && $proxyPort > 0) {
|
||||
@@ -75,7 +77,7 @@ trait WxV3PaymentTait
|
||||
|
||||
$sign = $this->signature('POST', '/v3/pay/transactions/out-trade-no/' . $orderNo . '?mchid=' . $config->pay->wx->mchId, "");
|
||||
|
||||
$client = $this->createClient($sign, null);
|
||||
$client = $this->createClient($sign, "");
|
||||
$client->get('/v3/pay/transactions/out-trade-no/' . $orderNo, ['mchid' => $config->pay->wx->mchId]);
|
||||
$client->close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user