From a86a3568e86e35fb835a4c131fc379034c5f24cc Mon Sep 17 00:00:00 2001 From: cnlimiter Date: Sat, 21 Mar 2026 02:49:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(register):=20Outlook=20=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E8=B7=B3=E8=BF=87=E5=8F=91=E9=80=81=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E7=8E=AF=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Outlook 邮箱由 OpenAI 直接发邮件,无需调用 _send_verification_code(),跳过该步骤直接等待收件 --- src/core/register.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/core/register.py b/src/core/register.py index f8123c6..94ed922 100644 --- a/src/core/register.py +++ b/src/core/register.py @@ -788,11 +788,14 @@ class RegistrationEngine: result.error_message = "注册密码失败" return result - # 9. 发送验证码 - self._log("9. 发送验证码...") - if not self._send_verification_code(): - result.error_message = "发送验证码失败" - return result + # 9. 发送验证码(Outlook 邮箱跳过,由邮箱本身接收) + if self.email_service.service_type.value != "outlook": + self._log("9. 发送验证码...") + if not self._send_verification_code(): + result.error_message = "发送验证码失败" + return result + else: + self._log("9. Outlook 邮箱,跳过发送验证码环节") # 10. 获取验证码 self._log("10. 等待验证码...")