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 }