feat: Initialize CodexAuth project, including virtual environment, dependencies, and initial authentication scripts.
This commit is contained in:
@@ -3032,8 +3032,10 @@ def perform_s2a_authorization(page, email: str, password: str) -> bool:
|
|||||||
log.step("检测到邮箱验证码页面,开始获取验证码...")
|
log.step("检测到邮箱验证码页面,开始获取验证码...")
|
||||||
progress_update(phase="授权", step="等待验证码...")
|
progress_update(phase="授权", step="等待验证码...")
|
||||||
|
|
||||||
# 获取验证码
|
# 获取验证码 (使用较短的轮询参数,加快响应)
|
||||||
verification_code, error, email_time = unified_get_verification_code(email)
|
verification_code, error, email_time = unified_get_verification_code(
|
||||||
|
email, max_retries=10, interval=2
|
||||||
|
)
|
||||||
|
|
||||||
if not verification_code:
|
if not verification_code:
|
||||||
log.warning(f"自动获取验证码失败: {error}")
|
log.warning(f"自动获取验证码失败: {error}")
|
||||||
@@ -3200,7 +3202,9 @@ def perform_s2a_authorization(page, email: str, password: str) -> bool:
|
|||||||
log.step("回调等待中检测到邮箱验证码页面...")
|
log.step("回调等待中检测到邮箱验证码页面...")
|
||||||
progress_update(phase="授权", step="等待验证码...")
|
progress_update(phase="授权", step="等待验证码...")
|
||||||
|
|
||||||
verification_code, error, email_time = unified_get_verification_code(email)
|
verification_code, error, email_time = unified_get_verification_code(
|
||||||
|
email, max_retries=10, interval=2
|
||||||
|
)
|
||||||
if not verification_code:
|
if not verification_code:
|
||||||
log.warning(f"自动获取验证码失败: {error}")
|
log.warning(f"自动获取验证码失败: {error}")
|
||||||
verification_code = input(" ⚠️ 请手动输入验证码: ").strip()
|
verification_code = input(" ⚠️ 请手动输入验证码: ").strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user