fix bugs
This commit is contained in:
parent
3ff94096db
commit
8f279fb2e4
|
|
@ -120,9 +120,9 @@ def start(account, display=0):
|
|||
file_path = f"{auth_file_path}/{account}.json"
|
||||
logging.info(f"认证文件路径: {file_path}")
|
||||
if os.path.exists(file_path):
|
||||
# 检查认证文件是否超过48小时
|
||||
file_age_hours = (time.time() - os.path.getmtime(file_path)) / 3600
|
||||
if file_age_hours > 48:
|
||||
# 检查认证文件是否超过30分钟
|
||||
file_age_minutes = (time.time() - os.path.getmtime(file_path)) / 60
|
||||
if file_age_minutes > 30:
|
||||
logging.warning("认证文件已过期,请重新登录")
|
||||
save_login_state(file_path, "收件箱", display)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue