feat/task1-c-wallet
devil_gong 2019-05-29 16:03:36 +08:00
parent 3df9333e66
commit 49a24d3940
2 changed files with 6 additions and 2 deletions

View File

@ -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';
}
}

View File

@ -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);