From d576de9e121aeef400971456532fac24ccb0892b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 15 Dec 2025 14:26:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20body=E8=BD=AC=E6=8D=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- httpclient/resty.go | 2 ++ 1 file changed, 2 insertions(+) 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) } }