From 432b39a9c4342bafc97b378fd431c6e19bb831f5 Mon Sep 17 00:00:00 2001 From: lanvent Date: Wed, 29 Mar 2023 11:32:30 +0800 Subject: [PATCH] fix: single voice to text bug --- channel/wechat/wechat_channel.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index 28d8fb6..abbe298 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -297,9 +297,6 @@ class WechatChannel(Channel): match_prefix = check_prefix(content, conf().get('single_chat_prefix')) if match_prefix: # 判断如果匹配到自定义前缀,则返回过滤掉前缀+空格后的内容 content = content.replace(match_prefix, '', 1).strip() - else: - logger.info("[WX]receive voice, checkprefix didn't match") - return img_match_prefix = check_prefix(content, conf().get('image_create_prefix')) if img_match_prefix: