Browse Source

fix: wechatmp subscribe event

master
lanvent 1 year ago
parent
commit
bea4416f12
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      channel/wechatmp/receive.py

+ 4
- 1
channel/wechatmp/receive.py View File

@@ -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…
Cancel
Save