Skip to content

Commit

Permalink
修复了代理服务器引起的bug,不使用系统代理
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttyy123 committed Mar 12, 2023
1 parent 884675a commit 55760ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loginin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def showof(self):
def on_login(self):
self.data["DDDDD"] = ",0," + self.schoolid + "@" + self.opelist[self.operator]
self.data['upass'] = self.pas
response = requests.post(self.url, self.data, self.header)
proxies = {'http': None,
'https': None}
response = requests.post(self.url, self.data, self.header, proxies=proxies)
rt = response.status_code
print(response.url)
if response.url in self.warningmess:
Expand Down

0 comments on commit 55760ce

Please sign in to comment.