mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-11 21:00:42 +08:00
Update login.py
修复短信验证
This commit is contained in:
parent
9334bb6af9
commit
51cd92c7ad
8
login.py
8
login.py
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user