Skip to content

Commit

Permalink
🧪 test: 日志登录时间
Browse files Browse the repository at this point in the history
  • Loading branch information
nichuanfang committed Sep 20, 2023
1 parent 0fe2454 commit a7e02b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def prepare_for_aligo(base64_userdata:str,QQ_SMTP_PASSWORD:str):
expire_time = time.mktime(expire_time)
now = time.time()
days = (now - expire_time) / (24 * 60 * 60)
logger.info(f'距离上次登录已过去{days}天')
if days >= 30:
# 重新通过扫码登录
email_config = EMailConfig(
Expand Down

0 comments on commit a7e02b5

Please sign in to comment.