SDK菜单

master
Your Name 5 years ago
parent 032e5de877
commit c1a9c3918e

@ -12,7 +12,7 @@ class SdkMenuController extends ThinkController{
{ {
foreach($config as $k => $v) 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); $this->assign('list',$config);
@ -93,7 +93,7 @@ class SdkMenuController extends ThinkController{
{ {
if($v['id'] == $id) 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; $data = $v;
break; break;
} }

Loading…
Cancel
Save