From 68efa508d015a3943bb9604102d5b55829416d38 Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 23 Mar 2024 18:59:25 +0800 Subject: [PATCH] fix --- plugins/wechatforward/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/wechatforward/__init__.py b/plugins/wechatforward/__init__.py index f3a2d56..7c3cc25 100644 --- a/plugins/wechatforward/__init__.py +++ b/plugins/wechatforward/__init__.py @@ -292,8 +292,8 @@ class WeChatForward(_PluginBase): extra_userid = extras[3] if re.search(extra_pattern, title): # 判断text的userId - pattern = r"用户:\{(\d+)\}" - result = re.search(pattern, text) + userid_pattern = r"用户:\{(\d+)\}" + result = re.search(userid_pattern, text) if not result: continue # 获取消息text中的用户