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