diff --git a/spider/mail_qq.py b/spider/mail_qq.py index cb1d330..f01294a 100644 --- a/spider/mail_qq.py +++ b/spider/mail_qq.py @@ -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: