mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复使用旧pushplus推送后结果解析失败的问题 (#958)
This commit is contained in:
parent
fae26efb88
commit
349f14a7fc
|
@ -285,6 +285,7 @@ def pushplus_bot(title: str, content: str) -> None:
|
||||||
else:
|
else:
|
||||||
|
|
||||||
url_old = "http://pushplus.hxtrip.com/send"
|
url_old = "http://pushplus.hxtrip.com/send"
|
||||||
|
headers["Accept"] = "application/json"
|
||||||
response = requests.post(url=url_old, data=body, headers=headers).json()
|
response = requests.post(url=url_old, data=body, headers=headers).json()
|
||||||
|
|
||||||
if response["code"] == 200:
|
if response["code"] == 200:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user