From 6156ef2cb4c86147f6f16bcdfe3b11ae73ea2193 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 19 Dec 2019 10:53:19 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index 9cb2c19..a3a22d9 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -173,7 +173,9 @@ class HttpClient public function setIsSSL(bool $isSSL) { $this->isSSL = $isSSL; - $this->port = 443; + if ($this->isSSL) { + $this->port = 443; + } }