Browse Source

fix: empty content issue

master
lanvent 1 year ago
parent
commit
dcb9d7fc2a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      channel/wechat/wechat_channel.py

+ 3
- 0
channel/wechat/wechat_channel.py View File

@@ -244,6 +244,9 @@ class WechatChannel(Channel):


# 处理消息 TODO: 如果wechaty解耦,此处逻辑可以放置到父类 # 处理消息 TODO: 如果wechaty解耦,此处逻辑可以放置到父类
def handle(self, context): def handle(self, context):
if not context.content:
return
reply = Reply() reply = Reply()


logger.debug('[WX] ready to handle context: {}'.format(context)) logger.debug('[WX] ready to handle context: {}'.format(context))


Loading…
Cancel
Save