修复聊天获取消息校验处理

This commit is contained in:
liwei1dao 2022-10-19 15:18:26 +08:00
parent 79785852f6
commit a48c616907
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
//参数校验
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
}
return

View File

@ -84,7 +84,6 @@ func (this *apiComp) Send(session comm.IUserSession, req *pb.ChatSendReq) (code
return
}
//随机任务
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype62, 1)
if _, err = this.service.AcrossClusterRpcGo(
context.Background(),
session.GetServiecTag(),