提交 49a24d39 编写于 作者: D devil_gong

debug

上级 3df9333e
......@@ -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';
}
}
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册