1.缺失信息提交
This commit is contained in:
@ -49,10 +49,13 @@ class MenuLogic
|
|||||||
if ($menu_content && !$is_open && 2 === $menu_content['menu_type']) {
|
if ($menu_content && !$is_open && 2 === $menu_content['menu_type']) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
$domain = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://";
|
||||||
|
$domain .= $_SERVER['HTTP_HOST'];
|
||||||
//处理图标
|
//处理图标
|
||||||
$menu_list[] = [
|
$menu_list[] = [
|
||||||
'name' => $menu['name'],
|
'name' => $menu['name'],
|
||||||
'image' => UrlServer::getFileUrl($menu['image']),
|
// 'image' => UrlServer::getFileUrl($menu['image']),
|
||||||
|
'image' => $domain.$menu['image'],
|
||||||
'link' => $menu_content['link'] ?? $menu['link_address'],
|
'link' => $menu_content['link'] ?? $menu['link_address'],
|
||||||
'is_tab' => $menu_content['is_tab'] ?? '',
|
'is_tab' => $menu_content['is_tab'] ?? '',
|
||||||
'link_type' => $menu_content['link_type'] ?? $menu['link_type'],
|
'link_type' => $menu_content['link_type'] ?? $menu['link_type'],
|
||||||
|
|||||||
Reference in New Issue
Block a user