This commit is contained in:
Gordon
2022-02-10 16:52:18 +08:00
parent e02ca2f7e3
commit 6eb44cb9d8
2 changed files with 2 additions and 2 deletions
@@ -27,7 +27,7 @@ func InsertMessageToChatLog(msg pbMsg.MsgDataToMQ) error {
case constant.SingleChatType:
chatLog.RecvID = msg.MsgData.RecvID
}
chatLog.Content = string(msg.MsgData.Content)
chatLog.Content = msg.MsgData.Content
chatLog.CreateTime = utils.UnixMillSecondToTime(msg.MsgData.CreateTime)
chatLog.SendTime = utils.UnixMillSecondToTime(msg.MsgData.SendTime)
return dbConn.Table("chat_logs").Create(chatLog).Error