This commit is contained in:
xl
2023-11-14 12:41:17 +08:00
parent f92fdab692
commit f263014948
+4 -3
View File
@@ -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;