feat: 保留 DramaBox 登录,只有手动退出才清除

This commit is contained in:
Nixevol
2026-10-22 19:21:05 +08:00
parent 00e78661a7
commit 241762451c
10 changed files with 330 additions and 49 deletions
+6
View File
@@ -25,6 +25,12 @@ def enter() -> dict:
return {"token": client.token, "profile": profile}
def resume() -> dict:
if not client.token or not client.profile:
raise RuntimeError("还没有登录")
return {"token": client.token, "profile": client.profile}
def current(token: str) -> dict:
token = (token or "").strip()
if not token: