添加推送源
This commit is contained in:
parent
4a766b34b5
commit
5625537f08
34
server.py
34
server.py
@ -96,33 +96,21 @@ def s2wx(title="",description="", content=""):
|
|||||||
logger.debug("msgpusher {}",res)
|
logger.debug("msgpusher {}",res)
|
||||||
except:
|
except:
|
||||||
logger.error("msgpusher error");
|
logger.error("msgpusher error");
|
||||||
|
|
||||||
try:
|
try:
|
||||||
res = requests.post("http://106.52.193.182:10004/message?token=AK9uikNvF7HxlGG", json={
|
res = requests.post("https://push.020824.xyz/push/murmur", json={
|
||||||
"title": title,
|
"title": title,
|
||||||
"description": description,
|
"description": description,
|
||||||
"message": c,
|
"content": c,
|
||||||
"extras": {
|
"channel":"all-TT",
|
||||||
"client::display": {
|
"token": "gjvL2gMZqj326isgafmz"})
|
||||||
"contentType": "text/markdown"
|
logger.debug("msgpusher {}",res)
|
||||||
}}
|
|
||||||
})
|
|
||||||
logger.debug("Gotify {}",res)
|
|
||||||
except:
|
except:
|
||||||
logger.error("Gotify error");
|
logger.error("msgpusher error");
|
||||||
try:
|
|
||||||
# res = requests.post("http://106.52.193.182:10004/message?token=AK9uikNvF7HxlGG", json={
|
|
||||||
res = requests.post("http://127.0.0.1:10004/message?token=AQNbWzNcL.DB.hP", json={
|
|
||||||
"title": title,
|
|
||||||
"description": description,
|
|
||||||
"message": c,
|
|
||||||
"extras": {
|
|
||||||
"client::display": {
|
|
||||||
"contentType": "text/markdown"
|
|
||||||
}}
|
|
||||||
})
|
|
||||||
logger.debug("Gotify {}",res)
|
|
||||||
except:
|
|
||||||
logger.error("Gotify (127.0.0.1) error");
|
|
||||||
|
|
||||||
# try:
|
# try:
|
||||||
# try:
|
# try:
|
||||||
|
Loading…
Reference in New Issue
Block a user