mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
PushMe 推送通道修复 (#2034)
This commit is contained in:
parent
3987ef8d97
commit
590dbba19b
|
@ -168,4 +168,9 @@ export SMTP_PASSWORD=""
|
|||
## smtp_name 填写 SMTP 收发件人姓名,可随意填写
|
||||
export SMTP_NAME=""
|
||||
|
||||
## 15. PushMe
|
||||
## 官方说明文档:https://push.i-i.me/
|
||||
## PUSHME_KEY (必填)填写PushMe APP上获取的push_key
|
||||
export PUSHME_KEY=""
|
||||
|
||||
## 其他需要的变量,脚本中需要的变量使用 export 变量名= 声明即可
|
||||
|
|
|
@ -655,10 +655,10 @@ def pushme(title: str, content: str) -> None:
|
|||
}
|
||||
response = requests.post(url, data=data)
|
||||
|
||||
if response == 'success':
|
||||
if response.status_code == 200 and response.text == "success":
|
||||
print("PushMe 推送成功!")
|
||||
else:
|
||||
print("PushMe 推送失败!{response}")
|
||||
print(f"PushMe 推送失败!{response.status_code} {response.text}")
|
||||
|
||||
|
||||
def one() -> str:
|
||||
|
|
Loading…
Reference in New Issue
Block a user