mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 07:06:06 +08:00
修复PushDeer推送Python版本错误
This commit is contained in:
parent
b5bd3c85a2
commit
e3e6bb852a
|
@ -271,7 +271,7 @@ def pushdeer(title: str, content: str) -> None:
|
|||
print("PushDeer 服务的 DEER_KEY 未设置!!\n取消推送")
|
||||
return
|
||||
print("PushDeer 服务启动")
|
||||
data = {"text": title, "desp": urllib.parse.urlencode({"text": content})}
|
||||
data = {"text": title, "desp": content, "type": "markdown", "pushkey": push_config.get("DEER_KEY")}
|
||||
url = 'https://api2.pushdeer.com/message/push'
|
||||
response = requests.post(url, data=data).json()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user