From 9cd9ecd5ecb726db48a6e92060dc3e52594496fd Mon Sep 17 00:00:00 2001 From: nelson Date: Mon, 8 Jan 2024 13:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9PushPlus=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=8F=92=E4=BB=B6=E5=8F=91=E9=80=81=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- plugins/pushplusmsg/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 46423e4..e9677d9 100644 --- a/package.json +++ b/package.json @@ -330,7 +330,7 @@ "PushPlusMsg": { "name": "PushPlus消息推送", "description": "支持使用PushPlus发送消息通知。", - "version": "0.1", + "version": "0.2", "icon": "Pushplus_A.png", "author": "cheng", "level": 1 diff --git a/plugins/pushplusmsg/__init__.py b/plugins/pushplusmsg/__init__.py index dac8e38..c5bd6d2 100644 --- a/plugins/pushplusmsg/__init__.py +++ b/plugins/pushplusmsg/__init__.py @@ -173,7 +173,7 @@ class PushPlusMsg(_PluginBase): return 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}") res = RequestUtils().get_res(sc_url) if res and res.status_code == 200: @@ -190,7 +190,7 @@ class PushPlusMsg(_PluginBase): else: logger.warn("PushPlus消息发送失败,未获取到返回信息") except Exception as msg_e: - logger.error(f"PushPlus消息发送异常,{str(msg_e)}") + logger.error(f"PushPlus消息发送异常,{msg_e}") def stop_service(self): """