This commit is contained in:
crusader 2018-04-12 16:32:16 +09:00
parent ac80c89f48
commit e542a7a5f9

View File

@ -6,6 +6,7 @@ import (
"strconv" "strconv"
cuej "git.loafle.net/commons/util-go/encoding/json" 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" 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++ { 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])) _params = append(_params, string(params[indexC]))
continue continue
} }