上传聊天消息
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{
|
msg = &pb.DBChat{
|
||||||
Id: primitive.NewObjectID().Hex(),
|
Id: primitive.NewObjectID().Hex(),
|
||||||
Channel: req.Channel,
|
Channel: req.Channel,
|
||||||
Suid: session.GetUserId(),
|
Suid: session.GetUserId(),
|
||||||
Slv: req.Ulv,
|
Slv: req.Ulv,
|
||||||
Uname: req.Uname,
|
Uname: req.Uname,
|
||||||
Avatar: req.Avatar,
|
Avatar: req.Avatar,
|
||||||
Stag: session.GetServiecTag(),
|
Stag: session.GetServiecTag(),
|
||||||
Ctype: req.Ctype,
|
Ctype: req.Ctype,
|
||||||
Content: req.Content,
|
Content: req.Content,
|
||||||
Ctime: time.Now().Unix(),
|
Ctime: time.Now().Unix(),
|
||||||
AppendInt: req.AppendInt,
|
AppendInt: req.AppendInt,
|
||||||
AppendStr: req.AppendStr,
|
AppendStr: req.AppendStr,
|
||||||
AppendBool: req.AppendBool,
|
AppendBool: req.AppendBool,
|
||||||
|
AppendBytes: req.AppendBytes,
|
||||||
}
|
}
|
||||||
// if max, err = this.module.configure.GetChannelRecordMax(); err != nil {
|
// if max, err = this.module.configure.GetChannelRecordMax(); err != nil {
|
||||||
// code = pb.ErrorCode_ConfigNoFound
|
// code = pb.ErrorCode_ConfigNoFound
|
||||||
|
Loading…
Reference in New Issue
Block a user