fix: web 命令端点 execute_command → process_command (方法名错误)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
qinglong
2026-06-13 13:54:37 +08:00
parent fcac02d920
commit c1d2767f52
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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": "命令执行失败"})