This commit is contained in:
Gordon
2022-01-20 19:20:56 +08:00
parent 64f2fb9e73
commit 5a9f3f1f5e
2 changed files with 7 additions and 2 deletions
@@ -28,7 +28,7 @@ func InsertMessageToChatLog(msg pbMsg.MsgDataToMQ) error {
chatLog.RecvID = msg.MsgData.RecvID
}
chatLog.Content = string(msg.MsgData.Content)
chatLog.CreateTime = utils.UnixNanoSecondToTime(msg.MsgData.CreateTime)
chatLog.SendTime = utils.UnixNanoSecondToTime(msg.MsgData.SendTime)
chatLog.CreateTime = utils.UnixMillSecondToTime(msg.MsgData.CreateTime)
chatLog.SendTime = utils.UnixMillSecondToTime(msg.MsgData.SendTime)
return dbConn.Table("chat_logs").Create(chatLog).Error
}