From ac8ba98f0ad5b95d1985471807802d7a81984822 Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 7 Jun 2024 15:26:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=20v2.5.1=E4=BF=AE=E5=A4=8Dtoken=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E9=87=8D=E5=8F=91=E6=9C=AA=E5=AD=98=E5=82=A8userid?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- package.json | 3 ++- plugins/wechatforward/__init__.py | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7c889e0..008589a 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - [短剧刮削 v3.2](docs%2FShortPlayMonitor.md) - 云盘实时监控 v2.1 - 源文件恢复 v1.2 -- [微信消息转发 v2.5](docs%2FWeChatForward.md) +- [微信消息转发 v2.5.1](docs%2FWeChatForward.md) - 订阅下载统计 v1.5 - [自定义命令 v1.7](docs%2FCustomCommand.md) - docker自定义任务 v1.3 diff --git a/package.json b/package.json index fa08dd5..fb932f4 100644 --- a/package.json +++ b/package.json @@ -285,11 +285,12 @@ "name": "微信消息转发", "description": "根据正则转发通知到其他WeChat应用。", "labels": "消息通知", - "version": "2.5", + "version": "2.5.1", "icon": "Wechat_A.png", "author": "thsrite", "level": 1, "history": { + "v2.5.1": "修复token过期重发未存储userid问题", "v2.5": "增强额外消息发送", "v2.4": "修复配置修改后不重建缓存bug", "v2.3": "增加重建缓存,丰富转发历史", diff --git a/plugins/wechatforward/__init__.py b/plugins/wechatforward/__init__.py index 8ce0736..ebcd2fe 100644 --- a/plugins/wechatforward/__init__.py +++ b/plugins/wechatforward/__init__.py @@ -21,7 +21,7 @@ class WeChatForward(_PluginBase): # 插件图标 plugin_icon = "Wechat_A.png" # 插件版本 - plugin_version = "2.5" + plugin_version = "2.5.1" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -759,7 +759,7 @@ class WeChatForward(_PluginBase): f"额外消息 {self.__parse_tv_title(title)} 用户 {user_id} 已订阅,不再发送额外消息。") continue - logger.info(f"消息用户{user_id} 匹配到目标用户 {extra_userid}") + logger.info(f"消息用户 {user_id} 匹配到目标用户 {extra_userid}") self.__send_message(title=extra_msg, userid=user_id, @@ -972,7 +972,8 @@ class WeChatForward(_PluginBase): appid=appid, title=title, retry=retry, - text=text) + text=text, + userid=userid) return False elif res is not None: logger.error(