fix: empty content issue

This commit is contained in:
lanvent
2023-03-28 01:16:29 +08:00
parent 279f0f0234
commit dcb9d7fc2a

View File

@@ -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))