Update login.py

修复短信验证
This commit is contained in:
zhao-zg 2025-03-29 22:44:03 +08:00 committed by GitHub
parent 9334bb6af9
commit 51cd92c7ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -612,11 +612,9 @@ async def sendSMSDirectly(page):
while True:
if await page.xpath('//*[@id="small_img"]'):
await verification(page)
elif await page.xpath('//*[@id="captcha_modal"]/div/div[3]/button'):
elif await page.xpath('//*[@id="captcha_modal"]/div/div[4]/button'):
if await verification_shape(page) == "notSupport":
return "notSupport"
else:
break
@ -654,11 +652,9 @@ async def sendSMS(page):
while True:
if await page.xpath('//*[@id="small_img"]'):
await verification(page)
elif await page.xpath('//*[@id="captcha_modal"]/div/div[3]/button'):
elif await page.xpath('//*[@id="captcha_modal"]/div/div[4]/button'):
if await verification_shape(page) == "notSupport":
return "notSupport"
else:
break