feat: unify login UI and improve kdocs defaults
This commit is contained in:
@@ -59,7 +59,10 @@ def get_kdocs_status_api():
|
||||
uploader = get_kdocs_uploader()
|
||||
status = uploader.get_status()
|
||||
live = str(request.args.get("live", "")).lower() in ("1", "true", "yes")
|
||||
if live:
|
||||
|
||||
# 重启后首次查询时(last_login_ok is None)自动做一次实时状态校验
|
||||
should_live_check = live or status.get("last_login_ok") is None
|
||||
if should_live_check:
|
||||
live_status = uploader.refresh_login_status()
|
||||
if live_status.get("success"):
|
||||
logged_in = bool(live_status.get("logged_in"))
|
||||
|
||||
Reference in New Issue
Block a user