SDK菜单链接修改

master
zhanglingsheng 5 years ago
parent 787d7573f0
commit 94cc0bacbf

@ -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']];
}

Loading…
Cancel
Save