mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-06-07 23:16:52 +00:00
修改PushPlus消息推送插件发送请求的BUG
This commit is contained in:
@@ -330,7 +330,7 @@
|
|||||||
"PushPlusMsg": {
|
"PushPlusMsg": {
|
||||||
"name": "PushPlus消息推送",
|
"name": "PushPlus消息推送",
|
||||||
"description": "支持使用PushPlus发送消息通知。",
|
"description": "支持使用PushPlus发送消息通知。",
|
||||||
"version": "0.1",
|
"version": "0.2",
|
||||||
"icon": "Pushplus_A.png",
|
"icon": "Pushplus_A.png",
|
||||||
"author": "cheng",
|
"author": "cheng",
|
||||||
"level": 1
|
"level": 1
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ class PushPlusMsg(_PluginBase):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sc_url = "http://www.pushplus.plus/send?token=%s&title=%s&content=%s&template=json" % (self._token, urlencode(title), urlencode(text))
|
sc_url = "http://www.pushplus.plus/send?token=%s&title=%s&content=%s&template=json" % (self._token, title, text)
|
||||||
logger.info(f"PushPlus消息准备发送,信息内容:{sc_url}")
|
logger.info(f"PushPlus消息准备发送,信息内容:{sc_url}")
|
||||||
res = RequestUtils().get_res(sc_url)
|
res = RequestUtils().get_res(sc_url)
|
||||||
if res and res.status_code == 200:
|
if res and res.status_code == 200:
|
||||||
@@ -190,7 +190,7 @@ class PushPlusMsg(_PluginBase):
|
|||||||
else:
|
else:
|
||||||
logger.warn("PushPlus消息发送失败,未获取到返回信息")
|
logger.warn("PushPlus消息发送失败,未获取到返回信息")
|
||||||
except Exception as msg_e:
|
except Exception as msg_e:
|
||||||
logger.error(f"PushPlus消息发送异常,{str(msg_e)}")
|
logger.error(f"PushPlus消息发送异常,{msg_e}")
|
||||||
|
|
||||||
def stop_service(self):
|
def stop_service(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user