Merge pull request #194 from phpgao/master
add option priority for gotify
This commit is contained in:
commit
43b6e0aa76
@ -39,3 +39,4 @@ token=ssXXX
|
||||
[gotify]
|
||||
api_url=http://xxx.xxx.cn
|
||||
token=AMxxxx
|
||||
priority=7
|
3
push.py
3
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')}")
|
||||
|
Loading…
Reference in New Issue
Block a user