From 678f62e58b9bb7ca3287ed7eda776061a504c327 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 1 Jul 2022 14:39:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=BD=91=E5=85=B3=E5=B1=82?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/comp_gateroute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/comp_gateroute.go b/services/comp_gateroute.go index 87f674414..5f7665087 100644 --- a/services/comp_gateroute.go +++ b/services/comp_gateroute.go @@ -127,7 +127,7 @@ func (this *SCompGateRoute) ReceiveMsg(ctx context.Context, args *pb.AgentMessag handlereturn := msghandle.handle.Func.Call([]reflect.Value{msghandle.rcvr, reflect.ValueOf(session), reflect.ValueOf(msg)}) log.Debugf("[Handle Api] consumetime:%v method:%s uid:%s msg:%v", time.Since(stime), method, args.UserId, msg) errcode := pb.ErrorCode(handlereturn[0].Int()) - errdata := handlereturn[0].Interface() + errdata := handlereturn[1].Interface() if errcode != pb.ErrorCode_Success { //处理返货错误码 返回用户错误信息 log.Errorf("[Handle Api] method:%s uid:%s msg:%v code:%d", method, msg, errcode) reply.Code = errcode