mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-07-01 12:11:36 +08:00
refactor(config): 优化Outlook提供者优先级和验证码匹配逻辑
- 调整Outlook提供者优先级:IMAP_OLD > IMAP_NEW > Graph API - 增强OpenAI验证邮件发件人匹配模式,支持子域名 - 改进Graph API提供者的401错误处理,避免因权限不足误判 - 修复配置解析中的类型转换问题
This commit is contained in:
@@ -132,7 +132,8 @@ OTP_CODE_SEMANTIC_PATTERN = r'(?:code\s+is|验证码[是为]?\s*[::]?\s*)(\d{6
|
||||
OPENAI_EMAIL_SENDERS = [
|
||||
"noreply@openai.com",
|
||||
"no-reply@openai.com",
|
||||
"@openai.com", # 通配符匹配
|
||||
"@openai.com", # 精确域名匹配
|
||||
".openai.com", # 子域名匹配(如 otp@tm1.openai.com)
|
||||
]
|
||||
|
||||
# OpenAI 验证邮件关键词
|
||||
|
||||
Reference in New Issue
Block a user