diff --git a/internal/logic/domain/message/repo/message_repo.go b/internal/logic/domain/message/repo/message_repo.go index 2fe00eb..7d87c57 100644 --- a/internal/logic/domain/message/repo/message_repo.go +++ b/internal/logic/domain/message/repo/message_repo.go @@ -2,6 +2,7 @@ package repo import ( "fmt" + "gim/internal/business/comm/utils" "gim/internal/logic/domain/message/model" "gim/pkg/db" "gim/pkg/gerrors" @@ -66,6 +67,12 @@ func (d *messageRepo) GetMessageSeqForSendTime(userId int64, sendTime time.Time) First(&message).Error; err != nil { return 0, gerrors.WrapError(err) } + utils.FilePutContents("GetMessageSeqForSendTime", utils.SerializeStr(map[string]interface{}{ + "userId": userId, + "sendTime": sendTime, + "message": message, + "seq": message.Seq, + })) return message.Seq, nil }