Skip to content

Commit

Permalink
版本 2.01:fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pooneyy committed Sep 20, 2023
1 parent 9040dd3 commit 45505af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ def get_tenant_code(school_name: str) -> str:

def set_accounts():
global DEFAULT_SCHOOL_NAME
with open("config.json", "r+", encoding='utf8') as file:
try:config = json.load(file)
except:
config = {}
config['TrueCaptcha'] = None
config['Accounts'] = []
try:
with open("config.json", "r+", encoding='utf8') as file:config = json.load(file)
except:
config = {}
config['TrueCaptcha'] = None
config['Accounts'] = []
if config.get("TrueCaptcha") is None:
print('验证码识别使用 TrueCaptcha.org,如果你想手动识别验证码,请按 Ctrl + C')
try:
Expand Down

0 comments on commit 45505af

Please sign in to comment.