From 2a2b16318840bde11dcf936a75838f6796b07ed0 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 7 Jan 2020 12:57:24 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index 0f27cd6..aa020d1 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -251,15 +251,6 @@ class HttpClient * @return string */ private function parseUrlHost(&$url) - { - return $this->parseHost($url); - } - - /** - * @param $url - * @return string - */ - private function parseHost(&$url) { if (!empty($this->host)) { $url = $this->host . '/' . ltrim($url, '/'); @@ -288,8 +279,8 @@ class HttpClient if ($this->port !== 443) { $this->isSSL = false; } - $url = '/' . implode('/', $explode); } + $url = '/' . implode('/', $explode); return $first; } @@ -345,7 +336,6 @@ class HttpClient */ private function coroutine($ip, $url, $data = []) { - var_dump($ip, $url); $client = $this->generate_client($ip, $url, $data); if ($client->statusCode < 0) { throw new \Exception($client->errMsg);