From 7e71a76959461311fd3d5f21651b7a7c13e2b15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 27 Aug 2023 16:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8F=90=E5=8F=96=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E4=B8=9A=E5=8A=A1=E7=8A=B6=E6=80=81=E7=A0=81=E6=9C=AA?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- httpclient/request.go | 1 + 1 file changed, 1 insertion(+) diff --git a/httpclient/request.go b/httpclient/request.go index b269ab5..fca5d8b 100644 --- a/httpclient/request.go +++ b/httpclient/request.go @@ -303,6 +303,7 @@ func send(apiConfig *ApiRequestConfig, header map[string]string) *ApiResponse { response.Exception = exception.New(ResponseCodeNotFound, response.Response.StatusCode, map[string]string{ "real_reason": "parse response business code fail", }, fmt.Sprintf("business code location : %v, business code name : %v, parse business code fail", response.RequestConfig.ResponseCodeFieldLocation, response.RequestConfig.ResponseCodeField)) + return response } // 提取响应文案 response.Message = gjson.GetBytes(responseByte, response.RequestConfig.ResponseMessageField).String()