feat: 保留 DramaBox 登录,只有手动退出才清除
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user