From c1a9c3918e29c734bcf90f1952b584fb39775b4c Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 25 Oct 2019 11:17:41 +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 --- Application/Admin/Controller/SdkMenuController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/SdkMenuController.class.php b/Application/Admin/Controller/SdkMenuController.class.php index 43c9d8c52..f8f73fb12 100644 --- a/Application/Admin/Controller/SdkMenuController.class.php +++ b/Application/Admin/Controller/SdkMenuController.class.php @@ -12,7 +12,7 @@ class SdkMenuController 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); @@ -93,7 +93,7 @@ class SdkMenuController 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; }