From 3adc99b701534b2f5c9eb4313f603be02e78dfad Mon Sep 17 00:00:00 2001 From: 13009 Date: Wed, 7 Aug 2024 15:06:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20json=E8=A7=A3=E6=9E=90=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=8A=9B=E5=87=BA=E6=95=B0=E6=8D=AE=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/czcb/scfs/api/core/http/HttpResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scfs-api-core/src/main/java/com/czcb/scfs/api/core/http/HttpResponse.java b/scfs-api-core/src/main/java/com/czcb/scfs/api/core/http/HttpResponse.java index b09731c..38cf143 100644 --- a/scfs-api-core/src/main/java/com/czcb/scfs/api/core/http/HttpResponse.java +++ b/scfs-api-core/src/main/java/com/czcb/scfs/api/core/http/HttpResponse.java @@ -100,7 +100,7 @@ public class HttpResponse { return new HttpResponse<>(originalResponse.getHttpRequest(), originalResponse.getHttpHeaders(), responseBody, serviceResponse, originalBody); } catch (JsonSyntaxException e) { - throw new ApiClientException("解析JSON数据失败", e); + throw new ApiClientException(String.format("解析JSON数据失败:%s", Strings.toStr(originalResponse.getBody())), e); } } }