From 8cbe62a4023f637052b3da128b4867310530d94e Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 15 Aug 2026 19:11:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=87=8D=E7=BB=84=E8=BF=90=E8=A1=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=86=E7=BB=84=E5=B9=B6=E8=A1=A5=E5=BD=95=20XHProf?= =?UTF-8?q?=20=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 系统管理下新增运行管理目录(309),含定时任务(310)、Web日志(311)两个子目录;定时器配置/日志、访问统计仪表盘、原始访问日志、性能分析、系统状态、日志管理、主机列表共 8 条菜单挪入新分组;补录此前遗漏的 XHProf 四条菜单(304-307,叶子带 auth_node),新装环境与开发库结构对齐(26 条)。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .../service/adminInitData/SystemMenu.php | 98 +++++++++++++++++-- 1 file changed, 89 insertions(+), 9 deletions(-) diff --git a/extend/base/admin/service/adminInitData/SystemMenu.php b/extend/base/admin/service/adminInitData/SystemMenu.php index 1fc467e..0ba3d28 100644 --- a/extend/base/admin/service/adminInitData/SystemMenu.php +++ b/extend/base/admin/service/adminInitData/SystemMenu.php @@ -145,7 +145,7 @@ $ul_system_menu = array( ), array( "id" => 253, - "pid" => 228, + "pid" => 309, "title" => "日志管理", "icon" => "fa fa-connectdevelop", "href" => "debug.log/index", @@ -156,13 +156,13 @@ $ul_system_menu = array( ), array( "id" => 255, - "pid" => 228, + "pid" => 309, "title" => "系统状态", "icon" => "fa fa-info-circle", "href" => "system.status/index", "params" => "", "target" => "_self", - "sort" => 0, + "sort" => 1, "status" => 1, ), array( @@ -178,7 +178,7 @@ $ul_system_menu = array( ), array( "id" => 256, - "pid" => 228, + "pid" => 310, "title" => "定时器配置", "icon" => "fa fa-clock-o", "href" => "system.timer_config/index", @@ -189,7 +189,7 @@ $ul_system_menu = array( ), array( "id" => 257, - "pid" => 228, + "pid" => 310, "title" => "定时器日志", "icon" => "fa fa-history", "href" => "system.timer_log/index", @@ -200,7 +200,7 @@ $ul_system_menu = array( ), array( "id" => 258, - "pid" => 228, + "pid" => 309, "title" => "主机列表", "icon" => "fa fa-server", "href" => "system.host/index", @@ -211,18 +211,18 @@ $ul_system_menu = array( ), array( "id" => 301, - "pid" => 228, + "pid" => 311, "title" => "访问统计仪表盘", "icon" => "fa fa-line-chart", "href" => "system.nginx_log_stat/index", "params" => "", "target" => "_self", - "sort" => 0, + "sort" => 1, "status" => 1, ), array( "id" => 302, - "pid" => 228, + "pid" => 311, "title" => "原始访问日志", "icon" => "fa fa-file-text", "href" => "nginx.access_log/index", @@ -231,6 +231,86 @@ $ul_system_menu = array( "sort" => 0, "status" => 1, ), + array( + "id" => 304, + "pid" => 309, + "title" => "性能分析", + "icon" => "fa fa-tachometer", + "href" => "", + "params" => "", + "target" => "_self", + "sort" => 2, + "status" => 1, + ), + array( + "id" => 305, + "pid" => 304, + "title" => "采样列表", + "icon" => "fa fa-list", + "href" => "xhprof.run/index", + "params" => "", + "target" => "_self", + "auth_node" => "xhprof.run/index", + "sort" => 0, + "status" => 1, + ), + array( + "id" => 306, + "pid" => 304, + "title" => "命中记录", + "icon" => "fa fa-crosshairs", + "href" => "xhprof.run_watch/index", + "params" => "", + "target" => "_self", + "auth_node" => "xhprof.run_watch/index", + "sort" => 0, + "status" => 1, + ), + array( + "id" => 307, + "pid" => 304, + "title" => "监控规则", + "icon" => "fa fa-eye", + "href" => "xhprof.watch/index", + "params" => "", + "target" => "_self", + "auth_node" => "xhprof.watch/index", + "sort" => 0, + "status" => 1, + ), + array( + "id" => 309, + "pid" => 228, + "title" => "运行管理", + "icon" => "fa fa-heartbeat", + "href" => "", + "params" => "", + "target" => "_self", + "sort" => 1, + "status" => 1, + ), + array( + "id" => 310, + "pid" => 309, + "title" => "定时任务", + "icon" => "fa fa-clock-o", + "href" => "", + "params" => "", + "target" => "_self", + "sort" => 4, + "status" => 1, + ), + array( + "id" => 311, + "pid" => 309, + "title" => "Web日志", + "icon" => "fa fa-globe", + "href" => "", + "params" => "", + "target" => "_self", + "sort" => 3, + "status" => 1, + ), );