🔨Fix bug

This commit is contained in:
Leon 2021-08-09 23:49:56 +08:00
parent 2d8da0be84
commit 4228152126

View File

@ -68,7 +68,7 @@ def login(username, password) -> (str, requests.session):
f = session.post(url, headers=headers, data=login_data)
f.raise_for_status()
if f.text.find('Hello') == -1:
if f.text.find('Hello') == -1 and f.text.find('Confirm or change your customer data here') == -1:
return '-1', session
return sess_id, session