From 66a81cd47cef3efceec41e88559a039322d3033d Mon Sep 17 00:00:00 2001 From: lanvent Date: Thu, 30 Mar 2023 16:26:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BE=A4=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E8=A7=A6=E5=8F=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- channel/wechat/wechat_channel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index 90dd542..46cdad6 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -65,7 +65,6 @@ def _check(func): if conf().get('hot_reload') == True and int(create_time) < int(time.time()) - 60: # 跳过1分钟前的历史消息 logger.debug("[WX]history message {} skipped".format(msgId)) return - print(create_time) return func(self, msg) return wrapper @@ -332,6 +331,8 @@ class WechatChannel(Channel): ContextType.TEXT, reply.content, **context.kwargs) if new_context: reply = self._generate_reply(new_context) + else: + return else: logger.error('[WX] unknown context type: {}'.format(context.type)) return