调整
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2025-12-18 16:16:47 +08:00
parent b7e09aeb04
commit d9000fbe1c
14 changed files with 309 additions and 284 deletions

View File

@@ -107,6 +107,13 @@ abstract class Common extends BaseController
'status' => 1
])
->where('status', '=', 1)
->where(function($query) {
// 临时代码,移动端暂时不显示 "AI PC"
if (request()->from == 'mobile') {
$table_name = SysNavigationItemModel::getTable();
$query->whereNotIn($table_name . ".id", [77, 78]);
}
})
->order(['sort' => 'asc', 'id' => 'asc'])
->select();
if ($nav->isEmpty()) {
@@ -210,7 +217,7 @@ abstract class Common extends BaseController
];
}
unset($current);
return $data;
}
}