eee
This commit is contained in:
+4
-3
@@ -299,8 +299,9 @@ class Redhat extends SmallProgram
|
|||||||
{
|
{
|
||||||
$client = new Client('api.qpay.qq.com', 443, true);
|
$client = new Client('api.qpay.qq.com', 443, true);
|
||||||
$client->withHeader(['Content-Type' => 'application/x-www-form-urlencoded']);
|
$client->withHeader(['Content-Type' => 'application/x-www-form-urlencoded']);
|
||||||
$client->withSslKeyFile($this->payConfig->pay->wx->mchKey);
|
$client->withSslKeyFile($this->payConfig->pay->qq->mchKey);
|
||||||
$client->withSslCertFile($this->payConfig->pay->wx->mchCert);
|
$client->withSslCertFile($this->payConfig->pay->qq->mchCert);
|
||||||
|
$client->withCa($this->payConfig->pay->qq->mchCa);
|
||||||
$proxyHost = $this->payConfig->getProxyHost();
|
$proxyHost = $this->payConfig->getProxyHost();
|
||||||
$proxyPort = $this->payConfig->getProxyPort();
|
$proxyPort = $this->payConfig->getProxyPort();
|
||||||
if (!empty($proxyHost) && $proxyPort > 0) {
|
if (!empty($proxyHost) && $proxyPort > 0) {
|
||||||
@@ -331,7 +332,7 @@ class Redhat extends SmallProgram
|
|||||||
public function searchByOrderNo($listid, $orderNo = null): Result
|
public function searchByOrderNo($listid, $orderNo = null): Result
|
||||||
{
|
{
|
||||||
$requestParam['nonce_str'] = Help::random(31);
|
$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;
|
$requestParam['listid'] = $listid;
|
||||||
if (!empty($orderNo)) {
|
if (!empty($orderNo)) {
|
||||||
$requestParam['mch_billno'] = $orderNo;
|
$requestParam['mch_billno'] = $orderNo;
|
||||||
|
|||||||
Reference in New Issue
Block a user