This commit is contained in:
2023-12-06 16:56:09 +08:00
parent 8af14d1b3b
commit 7550d6dcfc
+3 -5
View File
@@ -74,11 +74,9 @@ trait WxV3PaymentTait
public function searchByOutTradeNo(string $orderNo): array
{
$config = $this->getPayConfig();
$parseUrl = '/v3/pay/transactions/out-trade-no/' . $orderNo . '?mchid=' . $config->pay->wx->mchId;
$sign = $this->signature('POST', urlencode($parseUrl), "");
$client = $this->createClient($sign, "");
$parseUrl = '/v3/pay/transactions/out-trade-no/' . $orderNo;
$sign = $this->signature('POST', $parseUrl, $json = json_encode(['mchid' => $config->pay->wx->mchId]));
$client = $this->createClient($sign, $json);
$client->get($parseUrl);
$client->close();