From c1d2767f5208a63fea8056ee4a981eccd1c01bc0 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sat, 13 Jun 2026 13:54:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20web=20=E5=91=BD=E4=BB=A4=E7=AB=AF?= =?UTF-8?q?=E7=82=B9=20execute=5Fcommand=20=E2=86=92=20process=5Fcommand?= =?UTF-8?q?=20(=E6=96=B9=E6=B3=95=E5=90=8D=E9=94=99=E8=AF=AF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- config/plugins/commands.yaml | 2 +- config/services/network_routes.yaml | 2 +- services/web_panel/routes/commands.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/plugins/commands.yaml b/config/plugins/commands.yaml index a76c617..74fc7d5 100644 --- a/config/plugins/commands.yaml +++ b/config/plugins/commands.yaml @@ -97,7 +97,7 @@ commands: permissions: - framework.command.test source: internal -last_updated: 11814.024966534 +last_updated: 12019.862122705 plugin_commands: example_plugin: echo: *id001 diff --git a/config/services/network_routes.yaml b/config/services/network_routes.yaml index 7ac5d69..10429fa 100644 --- a/config/services/network_routes.yaml +++ b/config/services/network_routes.yaml @@ -1,5 +1,5 @@ http_port: 4200 -last_updated: 11814.04652419 +last_updated: 12019.877017393 plugin_routes: example_plugin: - methods: diff --git a/services/web_panel/routes/commands.py b/services/web_panel/routes/commands.py index 691e9ca..7f5a448 100644 --- a/services/web_panel/routes/commands.py +++ b/services/web_panel/routes/commands.py @@ -22,7 +22,7 @@ async def exec_cmd(req): if not cs: return web.json_response({"error": "Missing"}, status=503) try: - res = await cs.execute_command(raw) + res = await cs.process_command(raw, source="web") return web.json_response({"success": True, "output": str(res)}) except Exception: return web.json_response({"success": False, "error": "命令执行失败"})