Skip to content

Commit

Permalink
Correct the log information
Browse files Browse the repository at this point in the history
  • Loading branch information
6vision committed Jun 26, 2024
1 parent 70ff234 commit 91f5ffb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion channel/dingtalk/dingtalk_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def handle_group(self, cmsg: DingTalkMessage):
elif cmsg.ctype == ContextType.PATPAT:
logger.debug("[DingTalk]receive patpat msg: {}".format(cmsg.content))
elif cmsg.ctype == ContextType.TEXT:
logger.debug("[DingTalk]receive patpat msg: {}".format(cmsg.content))
logger.debug("[DingTalk]receive text msg: {}".format(cmsg.content))
else:
logger.debug("[DingTalk]receive other msg: {}".format(cmsg.content))
context = self._compose_context(cmsg.ctype, cmsg.content, isgroup=True, msg=cmsg)
Expand Down
2 changes: 1 addition & 1 deletion channel/dingtalk/dingtalk_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, event: ChatbotMessage, image_download_handler):
if self.is_group:
self.from_user_id = event.conversation_id
self.actual_user_id = event.sender_id
self.is_at = True # 群聊内,只有被艾特时候才会收到消息
self.is_at = True
else:
self.from_user_id = event.sender_id
self.actual_user_id = event.sender_id
Expand Down

0 comments on commit 91f5ffb

Please sign in to comment.