Browse Source

Correct the log information

master
6vision 5 months ago
parent
commit
91f5ffb2d9
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      channel/dingtalk/dingtalk_channel.py
  2. +1
    -1
      channel/dingtalk/dingtalk_message.py

+ 1
- 1
channel/dingtalk/dingtalk_channel.py View File

@@ -163,7 +163,7 @@ class DingTalkChanel(ChatChannel, dingtalk_stream.ChatbotHandler):
elif cmsg.ctype == ContextType.PATPAT: elif cmsg.ctype == ContextType.PATPAT:
logger.debug("[DingTalk]receive patpat msg: {}".format(cmsg.content)) logger.debug("[DingTalk]receive patpat msg: {}".format(cmsg.content))
elif cmsg.ctype == ContextType.TEXT: elif cmsg.ctype == ContextType.TEXT:
logger.debug("[DingTalk]receive patpat msg: {}".format(cmsg.content))
logger.debug("[DingTalk]receive text msg: {}".format(cmsg.content))
else: else:
logger.debug("[DingTalk]receive other msg: {}".format(cmsg.content)) logger.debug("[DingTalk]receive other msg: {}".format(cmsg.content))
context = self._compose_context(cmsg.ctype, cmsg.content, isgroup=True, msg=cmsg) context = self._compose_context(cmsg.ctype, cmsg.content, isgroup=True, msg=cmsg)


+ 1
- 1
channel/dingtalk/dingtalk_message.py View File

@@ -49,7 +49,7 @@ class DingTalkMessage(ChatMessage):
if self.is_group: if self.is_group:
self.from_user_id = event.conversation_id self.from_user_id = event.conversation_id
self.actual_user_id = event.sender_id self.actual_user_id = event.sender_id
self.is_at = True # 群聊内,只有被艾特时候才会收到消息
self.is_at = True
else: else:
self.from_user_id = event.sender_id self.from_user_id = event.sender_id
self.actual_user_id = event.sender_id self.actual_user_id = event.sender_id


Loading…
Cancel
Save