manager send message to mysql duplicate primary key fix

This commit is contained in:
Gordon 2022-05-09 14:15:29 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent aae978535b
commit 55be9da582

View File

@ -51,7 +51,7 @@ func (pc *PersistentConsumerHandler) handleChatWs2Mysql(msg []byte, msgKey strin
tag = true
}
case constant.GroupChatType:
if msgKey == msgFromMQ.MsgData.SendID || utils.IsContain(msgFromMQ.MsgData.SendID, config.Config.Manager.AppManagerUid) {
if msgKey == msgFromMQ.MsgData.SendID {
tag = true
}
}