wx pay debug

feat/task1-c-wallet
devil_gong 2019-05-29 15:34:23 +08:00
parent fc264f64e2
commit ce6dc0e685
1 changed files with 10 additions and 10 deletions

View File

@ -639,18 +639,18 @@ class Weixin
if($use_cert == true)
{
$apiclient_cert = "-----BEGIN CERTIFICATE-----\n";
$apiclient_cert .= wordwrap($this->config['apiclient_cert'], 64, "\n", true);
$apiclient_cert .= "\n-----END CERTIFICATE-----";
// $apiclient_cert = "-----BEGIN CERTIFICATE-----\n";
// $apiclient_cert .= wordwrap($this->config['apiclient_cert'], 64, "\n", true);
// $apiclient_cert .= "\n-----END CERTIFICATE-----";
$apiclient_key = "-----BEGIN PRIVATE KEY-----\n";
$apiclient_key .= wordwrap($this->config['apiclient_key'], 64, "\n", true);
$apiclient_key .= "\n-----END PRIVATE KEY-----";
// $apiclient_key = "-----BEGIN PRIVATE KEY-----\n";
// $apiclient_key .= wordwrap($this->config['apiclient_key'], 64, "\n", true);
// $apiclient_key .= "\n-----END PRIVATE KEY-----";
$options[CURLOPT_SSLCERTTYPE] = 'PEM';
$options[CURLOPT_SSLCERT] = $apiclient_cert;
$options[CURLOPT_SSLKEYTYPE] = 'PEM';
$options[CURLOPT_SSLKEY] = $apiclient_key;
// $options[CURLOPT_SSLCERTTYPE] = 'PEM';
// $options[CURLOPT_SSLCERT] = $apiclient_cert;
// $options[CURLOPT_SSLKEYTYPE] = 'PEM';
// $options[CURLOPT_SSLKEY] = $apiclient_key;
//设置证书
//使用证书cert 与 key 分别属于两个.pem文件