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);