diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index d9e09a9..84ae251 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -507,10 +507,10 @@ class HttpClient $sslCert = $this->getSslCertFile(); $sslKey = $this->getSslKeyFile(); $sslCa = $this->getCa(); -// -// if (empty($sslCert) || empty($sslKey) || empty($sslCa)) { -// return []; -// } + + if (empty($sslCert) || empty($sslKey) || empty($sslCa)) { + return []; + } $params['ssl_host_name'] = $this->host; $params['ssl_cert_file'] = $this->getSslCertFile(); $params['ssl_key_file'] = $this->getSslKeyFile();