From 2745650d3912cbd0e805fa0787b9dd3a93ca1484 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 19 Dec 2019 10:51:30 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/HttpClient.php b/common/HttpClient.php index d78d392..a5ca7a3 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -255,6 +255,9 @@ class HttpClient } $url = '/' . implode('/', $explode); + if (!empty($this->host)) { + return $this->host; + } if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) { return $first;