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": "命令执行失败"})