mirror of
https://github.com/TDSCDMAA/AutoMihoyoBBS.git
synced 2026-06-08 13:20:14 +08:00
通知增加
This commit is contained in:
parent
4c52b8c590
commit
5ad6bc21c1
@ -86,7 +86,7 @@ def clear_cookies():
|
||||
data["mihoyobbs_Login_ticket"] = ""
|
||||
data["mihoyobbs_Stuid"] = ""
|
||||
data["mihoyobbs_Stoken"] = ""
|
||||
data["mihoyobbs_Cookies"] = ""
|
||||
data["mihoyobbs_Cookies"] = "CookieError"
|
||||
f.seek(0)
|
||||
f.truncate()
|
||||
temp_text = json.dumps(data, sort_keys=False, indent=4, separators=(', ', ': '))
|
||||
|
||||
2
main.py
2
main.py
@ -81,6 +81,8 @@ def main():
|
||||
else:
|
||||
log.info("崩坏3签到功能未启用!")
|
||||
return 0, return_data
|
||||
elif config.mihoyobbs_Cookies == "CookieError":
|
||||
raise CookieError('Cookie expires')
|
||||
else:
|
||||
log.warning("Config未启用!")
|
||||
return 1, "Config未启用!"
|
||||
|
||||
@ -55,7 +55,12 @@ def main_multi(autorun: bool):
|
||||
f'没执行{len(results["close"])}个,失败{len(results["error"])}个' \
|
||||
f'\r\n没执行的配置文件: {results["close"]}\r\n执行失败的配置文件: {results["error"]}'
|
||||
log.info(push_message)
|
||||
push.push(0, push_message)
|
||||
status = 0
|
||||
if len(results["error"]) == len(config_list):
|
||||
status = 1
|
||||
elif len(results["error"]) < len(config_list):
|
||||
status = 2
|
||||
push.push(status, push_message)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user