mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix
This commit is contained in:
@@ -694,12 +694,14 @@ class WeChatForward(_PluginBase):
|
|||||||
# 搜索消息,获取消息text中的用户
|
# 搜索消息,获取消息text中的用户
|
||||||
result = re.search(r"用户:(.*?)\n", text)
|
result = re.search(r"用户:(.*?)\n", text)
|
||||||
if not result:
|
if not result:
|
||||||
# 订阅消息,获取消息text中的用户
|
result = re.search(r"\*用户\*:(.*?)\n", text)
|
||||||
pattern = r"来自用户:(.*?)$"
|
|
||||||
result = re.search(pattern, text)
|
|
||||||
if not result:
|
if not result:
|
||||||
logger.error(f"{title} 未获取到用户,跳过处理")
|
# 订阅消息,获取消息text中的用户
|
||||||
continue
|
pattern = r"来自用户:(.*?)$"
|
||||||
|
result = re.search(pattern, text)
|
||||||
|
if not result:
|
||||||
|
logger.error(f"{title} 未获取到用户,跳过处理")
|
||||||
|
continue
|
||||||
|
|
||||||
# 获取消息text中的用户
|
# 获取消息text中的用户
|
||||||
user_id = result.group(1)
|
user_id = result.group(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user