diff --git a/config/push.ini.example b/config/push.ini.example index c512f39..b2629fc 100644 --- a/config/push.ini.example +++ b/config/push.ini.example @@ -39,3 +39,4 @@ token=ssXXX [gotify] api_url=http://xxx.xxx.cn token=AMxxxx +priority=7 \ No newline at end of file diff --git a/push.py b/push.py index fcc2aa0..d726196 100644 --- a/push.py +++ b/push.py @@ -155,7 +155,8 @@ def gotify(status, push_message): headers={"Content-Type": "application/json; charset=utf-8"}, json={ "title": title(status), - "message": push_message + "message": push_message, + "priority": cfg.getint("gotify", "priority") } ).json() log.info(f"推送结果:{rep.get('errmsg')}")