修复聊天获取消息校验处理
This commit is contained in:
parent
79785852f6
commit
a48c616907
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
//参数校验
|
//参数校验
|
||||||
func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.ChatGetListReq) (code pb.ErrorCode) {
|
func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.ChatGetListReq) (code pb.ErrorCode) {
|
||||||
if req.Channel == pb.ChatChannel_World && req.ChannelId == 0 {
|
if req.Channel == pb.ChatChannel_CrossServer && req.ChannelId == 0 {
|
||||||
code = pb.ErrorCode_ReqParameterError
|
code = pb.ErrorCode_ReqParameterError
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
@ -84,7 +84,6 @@ func (this *apiComp) Send(session comm.IUserSession, req *pb.ChatSendReq) (code
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
//随机任务
|
//随机任务
|
||||||
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype62, 1)
|
|
||||||
if _, err = this.service.AcrossClusterRpcGo(
|
if _, err = this.service.AcrossClusterRpcGo(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
session.GetServiecTag(),
|
session.GetServiecTag(),
|
||||||
|
Loading…
Reference in New Issue
Block a user