From 6cb3a9ad759baeab5900fa9b1ce0d34339c0e433 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 25 Oct 2019 11:18:43 +0800 Subject: [PATCH] =?UTF-8?q?SDK=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PersonalMenusController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/PersonalMenusController.class.php b/Application/Admin/Controller/PersonalMenusController.class.php index c5ac9f2d9..597eac534 100644 --- a/Application/Admin/Controller/PersonalMenusController.class.php +++ b/Application/Admin/Controller/PersonalMenusController.class.php @@ -12,7 +12,7 @@ class PersonalMenusController extends ThinkController{ { foreach($config as $k => $v) { - $config[$k]['icon'] = is_https()?'https://':'http://' . $_SERVER['SERVER_NAME'] . $v['icon']; + $config[$k]['icon'] = is_https()?'https://':'http://' . $_SERVER['HTTP_HOST'] . $v['icon']; } } $this->assign('list',$config); @@ -95,7 +95,7 @@ class PersonalMenusController extends ThinkController{ { if($v['id'] == $id) { - $v['icon'] = is_https()?'https://':'http://' . $_SERVER['SERVER_NAME'] . $v['icon']; + $v['icon'] = is_https()?'https://':'http://' . $_SERVER['HTTP_HOST'] . $v['icon']; $data = $v; break; }