protocol modify

This commit is contained in:
Gordon 2022-01-20 11:42:43 +08:00
parent e7c7784fec
commit ff779fcc7c
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ func saveUserChat(uid string, msg *pbMsg.MsgDataToMQ) error {
log.NewError(msg.OperationID, "data insert to redis err", err.Error(), msg.String())
return err
}
msg.MsgData.Seq = seq
msg.MsgData.Seq = uint32(seq)
pbSaveData := pbMsg.MsgDataToDB{}
pbSaveData.MsgData = msg.MsgData
log.NewInfo(msg.OperationID, "IncrUserSeq cost time", utils.GetCurrentTimestampByMill()-time)

View File

@ -24,7 +24,7 @@ type OpenIMContent struct {
SessionType int `json:"sessionType"`
From string `json:"from"`
To string `json:"to"`
Seq int64 `json:"seq"`
Seq uint32 `json:"seq"`
}
type AtContent struct {
Text string `json:"text"`