refactor: 抖音登录态检测不在抛出警告,可能会误导使用者
This commit is contained in:
parent
7635ffd9e5
commit
df1e4a7b02
@ -80,8 +80,8 @@ class DouYinLogin(AbstractLogin):
|
|||||||
if local_storage.get("HasUserLogin", "") == "1":
|
if local_storage.get("HasUserLogin", "") == "1":
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
utils.logger.warn(f"[DouYinLogin] check_login_state waring: {e}")
|
# utils.logger.warn(f"[DouYinLogin] check_login_state waring: {e}")
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
||||||
if cookie_dict.get("LOGIN_STATUS") == "1":
|
if cookie_dict.get("LOGIN_STATUS") == "1":
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user