From 9657937fd74c8de122bf20a0970d71bb34b11bed Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 29 May 2019 14:57:58 +0800 Subject: [PATCH] wx pay debug --- extend/payment/Weixin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index 2a156ff2d..e834a617d 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -642,9 +642,9 @@ class Weixin //使用证书:cert 与 key 分别属于两个.pem文件 //证书文件请放入服务器的非web目录下 curl_setopt($ch,CURLOPT_SSLCERTTYPE,'PEM'); - curl_setopt($ch,CURLOPT_SSLCERT, ROOT.'weixin-cert/apiclient_cert.pem'); + curl_setopt($ch,CURLOPT_SSLCERT, ROOT.'cert/apiclient_cert.pem'); curl_setopt($ch,CURLOPT_SSLKEYTYPE,'PEM'); - curl_setopt($ch,CURLOPT_SSLKEY, ROOT.'weixin-cert/apiclient_key.pem'); + curl_setopt($ch,CURLOPT_SSLKEY, ROOT.'cert/apiclient_key.pem'); } //post提交方式 curl_setopt($ch, CURLOPT_POST, TRUE); @@ -699,9 +699,9 @@ class Weixin //设置证书 //使用证书:cert 与 key 分别属于两个.pem文件 $options[CURLOPT_SSLCERTTYPE] = 'PEM'; - $options[CURLOPT_SSLCERT] = '/www/wwwroot/test.shopxo.net/shopxo/cert/apiclient_cert.pem'; + $options[CURLOPT_SSLCERT] = ROOT.'cert/apiclient_cert.pem'; $options[CURLOPT_SSLKEYTYPE] = 'PEM'; - $options[CURLOPT_SSLKEY] = '/www/wwwroot/test.shopxo.net/shopxo/cert/apiclient_key.pem'; + $options[CURLOPT_SSLKEY] = ROOT.'cert/apiclient_key.pem'; } $ch = curl_init($url); -- GitLab