From 6a84e326a5bd5c7ebb62d9fcd208623beb7c3df4 Mon Sep 17 00:00:00 2001 From: cnlimiter Date: Sat, 21 Mar 2026 02:54:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(register):=20Outlook=20=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E5=8F=91=E9=AA=8C=E8=AF=81=E7=A0=81=E6=97=B6=E8=A1=A5=E5=85=85?= =?UTF-8?q?=20otp=5Fsent=5Fat=20=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 跳过 _send_verification_code() 时未设置 _otp_sent_at,导致轮询时 since_minutes=None 只搜 UNSEEN 邮件,已读邮件被忽略。补充时间戳后走 SINCE 时间范围搜索,避免漏检 --- src/core/register.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/register.py b/src/core/register.py index 94ed922..b956485 100644 --- a/src/core/register.py +++ b/src/core/register.py @@ -796,6 +796,7 @@ class RegistrationEngine: return result else: self._log("9. Outlook 邮箱,跳过发送验证码环节") + self._otp_sent_at = time.time() # 记录时间戳,供后续按时间范围搜索邮件 # 10. 获取验证码 self._log("10. 等待验证码...")