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()