This commit is contained in:
苏尹岚
2020-12-30 15:28:31 +08:00
parent 9a2fbeacb8
commit 4c8a182300

View File

@@ -442,7 +442,7 @@ func GetMessageGroupByUser(ctx *jxcontext.Context, userID string) (messageGroupR
sql = `
SELECT * FROM im_message_record WHERE group_id = ? AND to_user_id = ? ORDER BY created_at DESC LIMIT 1
`
sqlParams = append(sqlParams, v.GroupID, v.UserID)
sqlParams = append(sqlParams, v.GroupID, userID)
}
if err = dao.GetRow(db, &imMessageRecord, sql, sqlParams); err == nil {
v.LastTime = imMessageRecord.CreatedAt