上传聊天消息
This commit is contained in:
parent
af5ef67b63
commit
cace2487f9
@ -32,19 +32,20 @@ func (this *apiComp) SendCross(session comm.IUserSession, req *pb.ChatSendCrossR
|
||||
}
|
||||
|
||||
msg = &pb.DBChat{
|
||||
Id: primitive.NewObjectID().Hex(),
|
||||
Channel: req.Channel,
|
||||
Suid: session.GetUserId(),
|
||||
Slv: req.Ulv,
|
||||
Uname: req.Uname,
|
||||
Avatar: req.Avatar,
|
||||
Stag: session.GetServiecTag(),
|
||||
Ctype: req.Ctype,
|
||||
Content: req.Content,
|
||||
Ctime: time.Now().Unix(),
|
||||
AppendInt: req.AppendInt,
|
||||
AppendStr: req.AppendStr,
|
||||
AppendBool: req.AppendBool,
|
||||
Id: primitive.NewObjectID().Hex(),
|
||||
Channel: req.Channel,
|
||||
Suid: session.GetUserId(),
|
||||
Slv: req.Ulv,
|
||||
Uname: req.Uname,
|
||||
Avatar: req.Avatar,
|
||||
Stag: session.GetServiecTag(),
|
||||
Ctype: req.Ctype,
|
||||
Content: req.Content,
|
||||
Ctime: time.Now().Unix(),
|
||||
AppendInt: req.AppendInt,
|
||||
AppendStr: req.AppendStr,
|
||||
AppendBool: req.AppendBool,
|
||||
AppendBytes: req.AppendBytes,
|
||||
}
|
||||
// if max, err = this.module.configure.GetChannelRecordMax(); err != nil {
|
||||
// code = pb.ErrorCode_ConfigNoFound
|
||||
|
Loading…
Reference in New Issue
Block a user