From e542a7a5f98cde35d70725def0984935ec643fc9 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 12 Apr 2018 16:32:16 +0900 Subject: [PATCH] ing --- registry/rest-registry.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/registry/rest-registry.go b/registry/rest-registry.go index 763bb40..0e4911b 100644 --- a/registry/rest-registry.go +++ b/registry/rest-registry.go @@ -6,6 +6,7 @@ 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" ) @@ -116,7 +117,8 @@ func (rr *restRegistry) InvokeWithBytes(method string, params [][]byte, leadingP } for indexC := 0; indexC < len(params); indexC++ { - if pValues[indexC+lParamLen].Elem().Type().Kind() != reflect.String { + t, _, _ := cur.GetTypeInfo(pValues[indexC+lParamLen].Type()) + if t.Kind() != reflect.String { _params = append(_params, string(params[indexC])) continue }