We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91abdd3 commit 5f7e948Copy full SHA for 5f7e948
src/helpers.php
@@ -64,7 +64,7 @@ function curl(string $url, string $method = "GET", array $params = [], array $he
64
if(!empty($config['use_cert']) && $config['use_cert'] == true){
65
//设置证书
66
//使用证书:cert 与 key 分别属于两个 .pem 文件
67
- if (!empty($config['use_cert']['ssl_cert_path'] && !empty($config['use_cert']['ssl_key_path']) {
+ if (!empty($config['use_cert']['ssl_cert_path']) && !empty($config['use_cert']['ssl_key_path'])) {
68
curl_setopt($ch,CURLOPT_SSLCERTTYPE,'PEM');
69
curl_setopt($ch,CURLOPT_SSLCERT, $config['use_cert']['ssl_cert_path']);
70
curl_setopt($ch,CURLOPT_SSLKEYTYPE,'PEM');
0 commit comments