From 664c053e5b8444dbd6594bf55299ad1c7d5cccbe Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 2 Apr 2023 10:30:21 +0800 Subject: [PATCH] body().string --- .../java/com/glxp/api/idc/service/impl/IdcServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java b/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java index 191d713f..48ceb8c9 100644 --- a/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java +++ b/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java @@ -248,7 +248,7 @@ public class IdcServiceImpl implements IdcService { try { boolean success=true; Response response = client.newCall(request).execute(); - result = response.body().toString(); + result = response.body().string(); JSONObject json = JSONObject.parseObject(result); if(isLastLevel()) { success = analyToDB(json,files); @@ -282,7 +282,7 @@ public class IdcServiceImpl implements IdcService { String result = ""; try { Response response = client.newCall(request).execute(); - result = response.body().toString(); + result = response.body().string(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace();