From 7bdbf14bafdc1e30d901282df01589c142c3fd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 3 Apr 2020 17:41:14 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();