ing
This commit is contained in:
parent
ac80c89f48
commit
e542a7a5f9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user