1.缺失信息提交

This commit is contained in:
2025-05-07 17:04:08 +08:00
parent 3eb26b4d93
commit fb9c6455b3

View File

@ -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'],