From cfc9a018f0df123f397bad89d78399ead0783139 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 13 Jul 2022 09:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E6=89=93=E5=8D=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/mail/api_delmail.go | 2 +- modules/mail/api_readmail.go | 2 +- services/comp_gateroute.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/mail/api_delmail.go b/modules/mail/api_delmail.go index 3c5efcbc5..40682f2ce 100644 --- a/modules/mail/api_delmail.go +++ b/modules/mail/api_delmail.go @@ -11,7 +11,7 @@ import ( //参数校验 func (this *apiComp) DelMailCheck(session comm.IUserSession, req *pb.MailDelMailReq) (code pb.ErrorCode) { if session.GetUserId() == "" || req.ObjID == "" { - code = pb.ErrorCode_NoLogin + code = pb.ErrorCode_ReqParameterError return } return diff --git a/modules/mail/api_readmail.go b/modules/mail/api_readmail.go index 81d222aca..81c4da955 100644 --- a/modules/mail/api_readmail.go +++ b/modules/mail/api_readmail.go @@ -9,7 +9,7 @@ import ( func (this *apiComp) ReadMailCheck(session comm.IUserSession, req *pb.MailReadMailReq) (code pb.ErrorCode) { if session.GetUserId() == "" || req.ObjID == "" { - code = pb.ErrorCode_NoLogin + code = pb.ErrorCode_ReqParameterError return } return diff --git a/services/comp_gateroute.go b/services/comp_gateroute.go index 0529b7e9e..1cd6df7a9 100644 --- a/services/comp_gateroute.go +++ b/services/comp_gateroute.go @@ -74,7 +74,7 @@ func (this *SCompGateRoute) Start() (err error) { //业务模块注册用户消息处理路由 func (this *SCompGateRoute) RegisterRoute(methodName string, comp reflect.Value, msg reflect.Type, handele reflect.Method) { - log.Debugf("注册用户路由【%s】", methodName) + //log.Debugf("注册用户路由【%s】", methodName) this.mrlock.RLock() _, ok := this.msghandles[methodName] this.mrlock.RUnlock()