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