From f2630149481f404115c4abd451d5aec17bd1c499 Mon Sep 17 00:00:00 2001 From: xl Date: Tue, 14 Nov 2023 12:41:17 +0800 Subject: [PATCH] eee --- qq/Redhat.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qq/Redhat.php b/qq/Redhat.php index fe4b748..b911571 100644 --- a/qq/Redhat.php +++ b/qq/Redhat.php @@ -299,8 +299,9 @@ class Redhat extends SmallProgram { $client = new Client('api.qpay.qq.com', 443, true); $client->withHeader(['Content-Type' => 'application/x-www-form-urlencoded']); - $client->withSslKeyFile($this->payConfig->pay->wx->mchKey); - $client->withSslCertFile($this->payConfig->pay->wx->mchCert); + $client->withSslKeyFile($this->payConfig->pay->qq->mchKey); + $client->withSslCertFile($this->payConfig->pay->qq->mchCert); + $client->withCa($this->payConfig->pay->qq->mchCa); $proxyHost = $this->payConfig->getProxyHost(); $proxyPort = $this->payConfig->getProxyPort(); if (!empty($proxyHost) && $proxyPort > 0) { @@ -331,7 +332,7 @@ class Redhat extends SmallProgram public function searchByOrderNo($listid, $orderNo = null): Result { $requestParam['nonce_str'] = Help::random(31); - $requestParam['mch_id'] = $this->payConfig->pay->wx->mchId; + $requestParam['mch_id'] = $this->payConfig->pay->qq->mchId; $requestParam['listid'] = $listid; if (!empty($orderNo)) { $requestParam['mch_billno'] = $orderNo;