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