debug
parent
3df9333e66
commit
49a24d3940
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue