From 333db69e4ac0539cf00deedb0c9521a2142faa19 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 16 Oct 2023 18:22:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=90=88=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/curl/client_resty.go | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/curl/client_resty.go b/utils/curl/client_resty.go index b09a24b4..ef1acbfa 100644 --- a/utils/curl/client_resty.go +++ b/utils/curl/client_resty.go @@ -112,7 +112,6 @@ func (c *defaultClient) PostJson(jsonData interface{}, res interface{}) error { if resp.StatusCode() != 200 { err = fmt.Errorf("服务端失败,返回结果:%+v", resp.RawResponse.Status) logx.Errorf("客户端 请求失败 Client PostForm Server error:%+v", err) - } else { if resp.RawResponse.StatusCode == 422 { jsonDataB, _ := json.Marshal(jsonData) logc.Infof(c.ctx, "服务端失败,返回状态码:%+v,请求参数:%+v", resp.RawResponse.StatusCode, string(jsonDataB))