mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-30 00:16:07 +08:00
Update notify.py
This commit is contained in:
parent
48aadf47c4
commit
d40ffcafae
|
@ -294,12 +294,12 @@ def chat(title: str, content: str) -> None:
|
||||||
print("chat 服务启动")
|
print("chat 服务启动")
|
||||||
data = 'payload=' + json.dumps({'text': content})
|
data = 'payload=' + json.dumps({'text': content})
|
||||||
url = push_config.get("CHAT_URL") + push_config.get("CHAT_TOKEN")
|
url = push_config.get("CHAT_URL") + push_config.get("CHAT_TOKEN")
|
||||||
response = requests.post(url, data=data).json()
|
response = requests.post(url, data=data)
|
||||||
|
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
print("PushDeer 推送成功!")
|
print("Chat 推送成功!")
|
||||||
else:
|
else:
|
||||||
print("PushDeer 推送失败!错误信息:", response)
|
print("Chat 推送失败!错误信息:", response)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user