修复中控自更新触发与错误提示;实例页改为表格,带鱼屏宽度锁 1800。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 07:44:12 +08:00
parent 2e460efb73
commit 5b4e35c582
8 changed files with 303 additions and 190 deletions
+4 -1
View File
@@ -540,7 +540,10 @@ def api_hub_self_update():
"""系统设置:中控本机快速更新."""
from lib.update_lib import schedule_pull_and_restart
result = schedule_pull_and_restart(delay_seconds=1.5)
try:
result = schedule_pull_and_restart(delay_seconds=2.0)
except Exception as e:
result = {"ok": False, "msg": f"触发更新异常: {e}", "deferred": False}
return jsonify(result), (200 if result.get("ok") else 400)