From a6a9c1926a51f6d0306944c42d908e84d862e159 Mon Sep 17 00:00:00 2001 From: lyf66 Date: Mon, 4 Aug 2025 15:33:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E9=80=9A=E6=8E=A5=E5=8F=A3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=B8=8D=E6=98=AF=E4=B8=AAjson=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0log=E7=82=B9=E8=A7=82=E5=AF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/whdc/utils/AICCHelper.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/whdc/utils/AICCHelper.java b/src/main/java/com/whdc/utils/AICCHelper.java index 8c55819..46164e2 100644 --- a/src/main/java/com/whdc/utils/AICCHelper.java +++ b/src/main/java/com/whdc/utils/AICCHelper.java @@ -116,7 +116,14 @@ public class AICCHelper { log.info("apiUploadCallData: {}", resp); TypeReference> type = new TypeReference>() { }; - AICCCallRespWrapper AICCCallRespWrapper = JSON.parseObject(resp, type); + AICCCallRespWrapper AICCCallRespWrapper = null; + try { + AICCCallRespWrapper = JSON.parseObject(resp, type); + } catch (Exception ex) { + log.error("apiUploadCallData: {}", resp); + log.error("error: ", ex); + throw ex; + } if (AICCCallRespWrapper == null || !AICCCallRespWrapper.isSuccess()) { initToken(); headers.put("X-Access-Token", getToken());