Skip to content

Commit 8c48a5b

Browse files
author
xirenbing
committed
updata
1 parent e0b6f33 commit 8c48a5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source_code/login_courses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# 在调用SC类之前 输出“LOGIN_FINISHED” 实现与父进程的通信
1111
# author Luoofan
1212
# date 2020-03-27 21:01:12
13-
# FilePath\login_courses.py
13+
# FilePath\source_code\login_courses.py
1414
#
1515
from requests import post, Session, get
1616
from urllib.parse import quote
@@ -94,8 +94,8 @@ def _getschool(self):
9494
# searchUnis?filter='+quote(name)).text # type:str
9595
text = post(url='http://passport2.chaoxing.com/org/searchforms?filter=' +
9696
quote(self.school)+'&allowjoin=0&pid=-1').text
97-
dic = loads(text) # 把字符串转化为字典
9897
try:
98+
dic = loads(text) # 把字符串转化为字典
9999
return dic['froms'][0]['id'], dic['froms'][0]['name'] # 取第一个匹配的信息作为登录选项
100100
except:
101101
print(COLOR.ERR, ' get school_id failed', COLOR.END)

source_code/publicfunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ def send_err(err_info):
4343
'arch': str(architecture()),
4444
'errorinfo': err_info
4545
}
46-
post('http://39.98.127.46/', data=data)
46+
post('http://luofan.网址/', data=data)

0 commit comments

Comments
 (0)