fix: web 命令端点 execute_command → process_command (方法名错误)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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": "命令执行失败"})
|
||||
|
||||
Reference in New Issue
Block a user