Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e2dd19a20 | ||
|
|
6403cd20f6 |
@@ -230,16 +230,13 @@ def handle_verification_code(tab, email_handler):
|
|||||||
|
|
||||||
while retry_count < max_retries:
|
while retry_count < max_retries:
|
||||||
try:
|
try:
|
||||||
print(f"\n[调试] 开始第 {retry_count + 1} 次验证码处理")
|
|
||||||
if tab.ele("Account Settings", timeout=3):
|
if tab.ele("Account Settings", timeout=3):
|
||||||
print_status("注册成功 - 已进入账户设置页面", "success")
|
print_status("注册成功 - 已进入账户设置页面", "success")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if tab.ele("@data-index=0", timeout=3):
|
if tab.ele("@data-index=0", timeout=3):
|
||||||
print_status("正在获取邮箱验证码...")
|
print_status("正在获取邮箱验证码...")
|
||||||
print(f"[调试] 开始获取验证码{email_handler}")
|
|
||||||
code = get_verification_code_with_retry(email_handler)
|
code = get_verification_code_with_retry(email_handler)
|
||||||
print(f"[调试] 获取到的验证码: {code}")
|
|
||||||
if not code:
|
if not code:
|
||||||
print_status("获取验证码失败", "error")
|
print_status("获取验证码失败", "error")
|
||||||
return False
|
return False
|
||||||
@@ -249,7 +246,6 @@ def handle_verification_code(tab, email_handler):
|
|||||||
|
|
||||||
# 快速输入验证码
|
# 快速输入验证码
|
||||||
for i, digit in enumerate(code):
|
for i, digit in enumerate(code):
|
||||||
print(f"[调试] 输入第 {i+1} 位: {digit}")
|
|
||||||
tab.ele(f"@data-index={i}").input(digit)
|
tab.ele(f"@data-index={i}").input(digit)
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"email": "12132ed@qq.com",
|
"email": "12132ed@qq.com",
|
||||||
"last_used": "2025-02-10 16:52:55"
|
"last_used": "2025-02-10 17:03:43"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user