From 2ad8177e6b8b31e3f69901ddd1f1c4c996e7745e Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Tue, 26 Oct 2021 20:39:22 +0800 Subject: [PATCH] test msg --- src/msg_transfer/logic/history_msg_handler.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/msg_transfer/logic/history_msg_handler.go b/src/msg_transfer/logic/history_msg_handler.go index ce17b9cb1..a40f8c5bc 100644 --- a/src/msg_transfer/logic/history_msg_handler.go +++ b/src/msg_transfer/logic/history_msg_handler.go @@ -63,16 +63,16 @@ func (mc *HistoryConsumerHandler) handleChatWs2Mongo(msg []byte, msgKey string) log.Info("", "", "msg_transfer chat type = SingleChatType", isHistory, isPersist) if isHistory { if msgKey == pbSaveData.RecvID { - //err := saveUserChat(pbData.RecvID, &pbSaveData) - //if err != nil { - // log.ErrorByKv("data insert to mongo err", pbSaveData.OperationID, "data", pbSaveData.String(), "err", err.Error()) - //} + err := saveUserChat(pbData.RecvID, &pbSaveData) + if err != nil { + log.ErrorByKv("data insert to mongo err", pbSaveData.OperationID, "data", pbSaveData.String(), "err", err.Error()) + } } else if msgKey == pbSaveData.SendID { - //err := saveUserChat(pbData.SendID, &pbSaveData) - //if err != nil { - // log.ErrorByKv("data insert to mongo err", pbSaveData.OperationID, "data", pbSaveData.String(), "err", err.Error()) - //} + err := saveUserChat(pbData.SendID, &pbSaveData) + if err != nil { + log.ErrorByKv("data insert to mongo err", pbSaveData.OperationID, "data", pbSaveData.String(), "err", err.Error()) + } }