From 527d28ec866495ee7c280be0b7ae305dba884a66 Mon Sep 17 00:00:00 2001 From: whatsns <617035918@qq.com> Date: Fri, 16 Oct 2020 10:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8E=B7=E5=8F=96=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E5=A4=9A=E5=9F=9F=E5=90=8D=E8=A7=A3=E6=9E=90=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=94=99=E8=AF=AF=E7=9A=84=E5=9F=9F=E5=90=8D=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E9=85=8D=E7=BD=AE=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/core/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/Controller.php b/system/core/Controller.php index e7aee0d..037ff70 100644 --- a/system/core/Controller.php +++ b/system/core/Controller.php @@ -88,7 +88,7 @@ class CI_Controller { $this->load->library ( 'encrypt' ); } - if (strstr ( trim ( config_item ( 'mobile_domain' ) ), $_SERVER ['SERVER_NAME'] )) { + if (strstr ( trim ( config_item ( 'mobile_domain' ) ), $_SERVER ['HTTP_HOST'] )) { defined ( 'SITE_URL' ) or define ( 'SITE_URL', config_item ( 'mobile_domain' ) ); } else { defined ( 'SITE_URL' ) or define ( 'SITE_URL', config_item ( 'base_url' ) ); -- GitLab