mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-12 22:10:43 +08:00
Update login.py
This commit is contained in:
parent
117bb54907
commit
d02d1535ff
4
login.py
4
login.py
@ -164,8 +164,8 @@ async def loginPhone(chromium_path, workList, uid, headless):
|
||||
workList[uid].msg = "账号异常,自行检查"
|
||||
break
|
||||
if False == sms_sent:
|
||||
button = await page.querySelector('.getMsg-btn.text-btn.timer.active')
|
||||
if button and "获取验证码" not in button.evaluate("textContent"):
|
||||
button = await page.querySelector('.getMsg-btn.text-btn')
|
||||
if button and "获取验证码" not in button.getProperty("textContent"):
|
||||
print("进入直接发短信分支")
|
||||
if not workList[uid].isAuto:
|
||||
workList[uid].status = "SMS"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user