From a48c616907f3c99885ae4e03b1f782bd211f5969 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 19 Oct 2022 15:18:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=81=8A=E5=A4=A9=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=81=AF=E6=A0=A1=E9=AA=8C=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/chat/api_getlist.go | 2 +- modules/chat/api_send.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/chat/api_getlist.go b/modules/chat/api_getlist.go index 0237e3bf0..91792038d 100644 --- a/modules/chat/api_getlist.go +++ b/modules/chat/api_getlist.go @@ -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 diff --git a/modules/chat/api_send.go b/modules/chat/api_send.go index be0e21082..522d7a5b2 100644 --- a/modules/chat/api_send.go +++ b/modules/chat/api_send.go @@ -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(),