Update notify.py

This commit is contained in:
Appoip 2022-09-03 21:58:08 +08:00 committed by GitHub
parent 48aadf47c4
commit d40ffcafae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,12 +294,12 @@ def chat(title: str, content: str) -> None:
print("chat 服务启动")
data = 'payload=' + json.dumps({'text': content})
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:
print("PushDeer 推送成功!")
print("Chat 推送成功!")
else:
print("PushDeer 推送失败!错误信息:", response)
print("Chat 推送失败!错误信息:", response)