diff --git a/httpclient/resty.go b/httpclient/resty.go index e50259b..7ff3cf9 100644 --- a/httpclient/resty.go +++ b/httpclient/resty.go @@ -61,6 +61,8 @@ func initRequestConfig(reqConfig *define.Request) { case io.Reader: dataContent, _ := io.ReadAll(val) serialize.JSON.UnmarshalWithNumberIgnoreError(dataContent, &bodyMap) + default: + serialize.JSON.TransitionIgnoreError(reqConfig.Body, &bodyMap) } }