File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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#
1515from requests import post , Session , get
1616from 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments