From a826961afac435cb88c218789df48c5b852e3d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 3 Apr 2020 17:33:13 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index b50fe0e..ed46d2c 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -338,8 +338,14 @@ class HttpClient private function cutRequestUrl($url) { $url = $this->replaceHost($url); + + var_dump($url); + $explode = explode('/', $url); $first = array_shift($explode); + + var_dump($first, $url); + if (strpos($first, ':') !== false) { [$first, $this->port] = explode(':', $first); if ($this->port !== 443) { @@ -501,7 +507,6 @@ class HttpClient } else { $client->post($url, $data); } - var_dump($client, $url); $client->close(); return $client; }