From 1697f371c264f9a09eaf5ebd00de57879e45023b Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 12 Apr 2018 16:56:06 +0900 Subject: [PATCH] ing --- registry/rest-registry.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/registry/rest-registry.go b/registry/rest-registry.go index 0e4911b..0f79268 100644 --- a/registry/rest-registry.go +++ b/registry/rest-registry.go @@ -6,7 +6,6 @@ import ( "strconv" cuej "git.loafle.net/commons/util-go/encoding/json" - cur "git.loafle.net/commons/util-go/reflect" cus "git.loafle.net/commons/util-go/service" ) @@ -102,7 +101,7 @@ func (rr *restRegistry) InvokeWithBytes(method string, params [][]byte, leadingP } // Decode the args. - pValues, pInstances := methodSpec.ParamValues() + _, pInstances := methodSpec.ParamValues() lParamLen := 0 if nil != leadingParams { @@ -117,14 +116,10 @@ func (rr *restRegistry) InvokeWithBytes(method string, params [][]byte, leadingP } for indexC := 0; indexC < len(params); indexC++ { - t, _, _ := cur.GetTypeInfo(pValues[indexC+lParamLen].Type()) - if t.Kind() != reflect.String { - _params = append(_params, string(params[indexC])) - continue - } ts, err := strconv.Unquote(string(params[indexC])) if nil != err { - return nil, err + _params = append(_params, string(params[indexC])) + continue } _params = append(_params, ts) }