Skip to content

Commit 5f7e948

Browse files
authored
Update helpers.php
1 parent 91abdd3 commit 5f7e948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function curl(string $url, string $method = "GET", array $params = [], array $he
6464
if(!empty($config['use_cert']) && $config['use_cert'] == true){
6565
//设置证书
6666
//使用证书:cert 与 key 分别属于两个 .pem 文件
67-
if (!empty($config['use_cert']['ssl_cert_path'] && !empty($config['use_cert']['ssl_key_path']) {
67+
if (!empty($config['use_cert']['ssl_cert_path']) && !empty($config['use_cert']['ssl_key_path'])) {
6868
curl_setopt($ch,CURLOPT_SSLCERTTYPE,'PEM');
6969
curl_setopt($ch,CURLOPT_SSLCERT, $config['use_cert']['ssl_cert_path']);
7070
curl_setopt($ch,CURLOPT_SSLKEYTYPE,'PEM');

0 commit comments

Comments
 (0)