From 94b8a217d50ab7db145d3e6e56444883be6d2a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 3 Apr 2020 17:30:22 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index de9ff5d..0b5fe11 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -462,6 +462,8 @@ class HttpClient $client = new SClient($host, $this->getHostPort(), $this->isSSL); $settings = $this->settings(); + var_dump($settings); + if (!empty($settings)) { $client->set($this->settings()); } @@ -511,6 +513,7 @@ class HttpClient $sslCert = $this->getSslCertFile(); $sslKey = $this->getSslKeyFile(); $sslCa = $this->getCa(); + if (empty($sslCert) || empty($sslKey) || empty($sslCa)) { return []; }