修复中控自更新触发与错误提示;实例页改为表格,带鱼屏宽度锁 1800。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user