login error code

This commit is contained in:
Womsxd 2022-01-04 08:27:10 +08:00
parent 92b76e02bf
commit a7962976c4
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68

View File

@ -49,7 +49,7 @@ class mihoyobbs:
tools.log.info("正在获取任务列表") tools.log.info("正在获取任务列表")
req = http.get(url=setting.bbs_Taskslist, headers=self.headers) req = http.get(url=setting.bbs_Taskslist, headers=self.headers)
data = req.json() data = req.json()
if "err" in data["message"]: if "err" in data["message"] or data["retcode"] == -100:
tools.log.info("获取任务列表失败你的cookie可能已过期请重新设置cookie。") tools.log.info("获取任务列表失败你的cookie可能已过期请重新设置cookie。")
config.Clear_cookies() config.Clear_cookies()
exit(1) exit(1)