Forces the program to end when a CAPTCHA is detected to be required during login.
This commit is contained in:
@@ -25,7 +25,7 @@ def login(url, username, password):
|
||||
if cookies == {}:
|
||||
lgn = student_client.login(username, password)
|
||||
if lgn["code"] == 1001:
|
||||
sys.exit("你的教务系统登录需要验证码,因此你无法使用此项目。")
|
||||
sys.exit("你的教务系统登录时需要验证码,因此你无法使用此项目。")
|
||||
"""
|
||||
verify_data = lgn["data"]
|
||||
with open(os.path.abspath("kaptcha.png"), "wb") as pic:
|
||||
|
||||
Reference in New Issue
Block a user