From ce6dc0e685f990a8af88ca270d3d1a493a81610d Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 29 May 2019 15:34:23 +0800 Subject: [PATCH] wx pay debug --- extend/payment/Weixin.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index 08652e2de..f307b6f21 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -639,18 +639,18 @@ class Weixin if($use_cert == true) { - $apiclient_cert = "-----BEGIN CERTIFICATE-----\n"; - $apiclient_cert .= wordwrap($this->config['apiclient_cert'], 64, "\n", true); - $apiclient_cert .= "\n-----END CERTIFICATE-----"; - - $apiclient_key = "-----BEGIN PRIVATE KEY-----\n"; - $apiclient_key .= wordwrap($this->config['apiclient_key'], 64, "\n", true); - $apiclient_key .= "\n-----END PRIVATE KEY-----"; - - $options[CURLOPT_SSLCERTTYPE] = 'PEM'; - $options[CURLOPT_SSLCERT] = $apiclient_cert; - $options[CURLOPT_SSLKEYTYPE] = 'PEM'; - $options[CURLOPT_SSLKEY] = $apiclient_key; + // $apiclient_cert = "-----BEGIN CERTIFICATE-----\n"; + // $apiclient_cert .= wordwrap($this->config['apiclient_cert'], 64, "\n", true); + // $apiclient_cert .= "\n-----END CERTIFICATE-----"; + + // $apiclient_key = "-----BEGIN PRIVATE KEY-----\n"; + // $apiclient_key .= wordwrap($this->config['apiclient_key'], 64, "\n", true); + // $apiclient_key .= "\n-----END PRIVATE KEY-----"; + + // $options[CURLOPT_SSLCERTTYPE] = 'PEM'; + // $options[CURLOPT_SSLCERT] = $apiclient_cert; + // $options[CURLOPT_SSLKEYTYPE] = 'PEM'; + // $options[CURLOPT_SSLKEY] = $apiclient_key; //设置证书 //使用证书:cert 与 key 分别属于两个.pem文件 -- GitLab