mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-12 14:00:43 +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:
|
while True:
|
||||||
if await page.xpath('//*[@id="small_img"]'):
|
if await page.xpath('//*[@id="small_img"]'):
|
||||||
await verification(page)
|
await verification(page)
|
||||||
|
elif await page.xpath('//*[@id="captcha_modal"]/div/div[4]/button'):
|
||||||
elif await page.xpath('//*[@id="captcha_modal"]/div/div[3]/button'):
|
|
||||||
if await verification_shape(page) == "notSupport":
|
if await verification_shape(page) == "notSupport":
|
||||||
return "notSupport"
|
return "notSupport"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
@ -654,11 +652,9 @@ async def sendSMS(page):
|
|||||||
while True:
|
while True:
|
||||||
if await page.xpath('//*[@id="small_img"]'):
|
if await page.xpath('//*[@id="small_img"]'):
|
||||||
await verification(page)
|
await verification(page)
|
||||||
|
elif await page.xpath('//*[@id="captcha_modal"]/div/div[4]/button'):
|
||||||
elif await page.xpath('//*[@id="captcha_modal"]/div/div[3]/button'):
|
|
||||||
if await verification_shape(page) == "notSupport":
|
if await verification_shape(page) == "notSupport":
|
||||||
return "notSupport"
|
return "notSupport"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user