瀏覽代碼

fix: wechatmp subscribe event

master
lanvent 1 年之前
父節點
當前提交
bea4416f12
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      channel/wechatmp/receive.py

+ 4
- 1
channel/wechatmp/receive.py 查看文件

@@ -19,7 +19,10 @@ class WeChatMPMessage(ChatMessage):
self.from_user_id = xmlData.find('FromUserName').text
self.create_time = xmlData.find('CreateTime').text
self.msg_type = xmlData.find('MsgType').text
self.msg_id = xmlData.find('MsgId').text
if self.msg_type != 'event':
self.msg_id = xmlData.find('MsgId').text
else:
self.msg_id = self.create_time
self.is_group = False
# reply to other_user_id


Loading…
取消
儲存