From dcb9d7fc2a5c22d49e6d4f0c088095b890932554 Mon Sep 17 00:00:00 2001 From: lanvent Date: Tue, 28 Mar 2023 01:16:29 +0800 Subject: [PATCH] fix: empty content issue --- channel/wechat/wechat_channel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index c7c660d..4e06248 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -244,6 +244,9 @@ class WechatChannel(Channel): # 处理消息 TODO: 如果wechaty解耦,此处逻辑可以放置到父类 def handle(self, context): + if not context.content: + return + reply = Reply() logger.debug('[WX] ready to handle context: {}'.format(context))