From 94cc0bacbf8d5daa8a6b42b2c0adcb279d4d3f4d Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Mon, 18 Nov 2019 13:49:10 +0800 Subject: [PATCH] =?UTF-8?q?SDK=E8=8F=9C=E5=8D=95=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/SdkMenuController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/SdkMenuController.class.php b/Application/Admin/Controller/SdkMenuController.class.php index f6cf3ddbb..09c6ea401 100644 --- a/Application/Admin/Controller/SdkMenuController.class.php +++ b/Application/Admin/Controller/SdkMenuController.class.php @@ -25,7 +25,7 @@ class SdkMenuController extends ThinkController $config = json_decode($sdkMenus['config'], true); if (!empty($config)) { foreach ($config as $k => $v) { - $config[$k]['icon'] = is_https() ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . $v['icon']; + $config[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] : (is_https() ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . $v['icon']); $config[$k]['type'] = $this->but_type[$v['type']]; $config[$k]['menu_version'] = $this->menu_version[$v['menu_version']]; }