From 43039838183e3e8c402a683ac3fa1cf4b991f1d0 Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 6 Dec 2023 16:39:11 +0800 Subject: [PATCH] eee --- wx/V3/WxV3PaymentTait.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wx/V3/WxV3PaymentTait.php b/wx/V3/WxV3PaymentTait.php index ffa0a54..ff3f680 100644 --- a/wx/V3/WxV3PaymentTait.php +++ b/wx/V3/WxV3PaymentTait.php @@ -66,12 +66,13 @@ trait WxV3PaymentTait /** * @param string $orderNo - * @param AppConfig $config * @return array * @throws Exception */ - public function searchByOutTradeNo(string $orderNo, AppConfig $config): array + public function searchByOutTradeNo(string $orderNo): array { + $config = $this->getPayConfig(); + $sign = $this->signature('POST', '/v3/pay/transactions/out-trade-no/' . $orderNo . '?mchid=' . $config->pay->wx->mchId, null); $client = $this->createClient($sign, null);