Update login.py

This commit is contained in:
zhao-zg 2024-07-30 11:52:20 +08:00 committed by GitHub
parent 117bb54907
commit d02d1535ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,8 +164,8 @@ async def loginPhone(chromium_path, workList, uid, headless):
workList[uid].msg = "账号异常,自行检查" workList[uid].msg = "账号异常,自行检查"
break break
if False == sms_sent: if False == sms_sent:
button = await page.querySelector('.getMsg-btn.text-btn.timer.active') button = await page.querySelector('.getMsg-btn.text-btn')
if button and "获取验证码" not in button.evaluate("textContent"): if button and "获取验证码" not in button.getProperty("textContent"):
print("进入直接发短信分支") print("进入直接发短信分支")
if not workList[uid].isAuto: if not workList[uid].isAuto:
workList[uid].status = "SMS" workList[uid].status = "SMS"