From a0f57749c48abc517c346765dddad8b3ef278cf4 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 24 Nov 2020 16:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BD=93=E5=89=8D=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Tool/Request.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Base/Tool/Request.class.php b/Application/Base/Tool/Request.class.php index cd3f1241f..00c55082d 100644 --- a/Application/Base/Tool/Request.class.php +++ b/Application/Base/Tool/Request.class.php @@ -99,7 +99,7 @@ class Request { public function getHost() { - $host = $this->getScheme() . '://' . $this->serverInfo['SERVER_NAME']; + $host = $this->getScheme() . '://' . $this->serverInfo['HTTP_HOST']; if (in_array($this->serverInfo['SERVER_PORT'], [80, 443])) { return $host; }