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]
|
[gotify]
|
||||||
api_url=http://xxx.xxx.cn
|
api_url=http://xxx.xxx.cn
|
||||||
token=AMxxxx
|
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"},
|
headers={"Content-Type": "application/json; charset=utf-8"},
|
||||||
json={
|
json={
|
||||||
"title": title(status),
|
"title": title(status),
|
||||||
"message": push_message
|
"message": push_message,
|
||||||
|
"priority": cfg.getint("gotify", "priority")
|
||||||
}
|
}
|
||||||
).json()
|
).json()
|
||||||
log.info(f"推送结果:{rep.get('errmsg')}")
|
log.info(f"推送结果:{rep.get('errmsg')}")
|
||||||
|
Loading…
Reference in New Issue
Block a user