From 49a24d394041ecd2bcb9086d1dd511713e96183f Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 29 May 2019 16:03:36 +0800 Subject: [PATCH] debug --- public/php_sdk_v3.0.10/example/WxPay.Config.php | 4 ++-- public/php_sdk_v3.0.10/lib/WxPay.Api.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/php_sdk_v3.0.10/example/WxPay.Config.php b/public/php_sdk_v3.0.10/example/WxPay.Config.php index 6a3bf78b8..e2adcf753 100755 --- a/public/php_sdk_v3.0.10/example/WxPay.Config.php +++ b/public/php_sdk_v3.0.10/example/WxPay.Config.php @@ -110,7 +110,7 @@ class WxPayConfig extends WxPayConfigInterface */ public function GetSSLCertPath(&$sslCertPath, &$sslKeyPath) { - $sslCertPath = '../../../cert/apiclient_cert.pem'; - $sslKeyPath = '../../../cert/apiclient_key.pem'; + $sslCertPath = '/www/wwwroot/test.shopxo.net/shopxo/cert/apiclient_cert.pem'; + $sslKeyPath = '/www/wwwroot/test.shopxo.net/shopxo/cert/apiclient_key.pem'; } } diff --git a/public/php_sdk_v3.0.10/lib/WxPay.Api.php b/public/php_sdk_v3.0.10/lib/WxPay.Api.php index ad5b1870f..1c787d9f9 100755 --- a/public/php_sdk_v3.0.10/lib/WxPay.Api.php +++ b/public/php_sdk_v3.0.10/lib/WxPay.Api.php @@ -583,6 +583,10 @@ class WxPayApi curl_setopt($ch,CURLOPT_SSLCERT, $sslCertPath); curl_setopt($ch,CURLOPT_SSLKEYTYPE,'PEM'); curl_setopt($ch,CURLOPT_SSLKEY, $sslKeyPath); + + echo file_get_contents($sslCertPath)."\n"; + echo file_get_contents($sslKeyPath); + die; } //post提交方式 curl_setopt($ch, CURLOPT_POST, TRUE); -- GitLab