This commit is contained in:
2023-12-06 17:21:31 +08:00
parent faccc08c86
commit 857237c2bc
+1 -1
View File
@@ -75,7 +75,7 @@ trait WxV3PaymentTait
{ {
$config = $this->getPayConfig(); $config = $this->getPayConfig();
$parseUrl = '/v3/pay/transactions/out-trade-no/' . $orderNo; $parseUrl = '/v3/pay/transactions/out-trade-no/' . $orderNo;
$sign = $this->signature('POST', $parseUrl . '?mchid=' . $config->pay->wx->mchId); $sign = $this->signature('GET', $parseUrl . '?mchid=' . $config->pay->wx->mchId);
$client = $this->createClient($sign, ''); $client = $this->createClient($sign, '');
$client->withAddedHeader('Accept', 'application/json'); $client->withAddedHeader('Accept', 'application/json');
$client->get($parseUrl, ['mchid' => $config->pay->wx->mchId]); $client->get($parseUrl, ['mchid' => $config->pay->wx->mchId]);