body().string

master
admin 2 years ago
parent 670b578198
commit 664c053e5b

@ -248,7 +248,7 @@ public class IdcServiceImpl implements IdcService {
try { try {
boolean success=true; boolean success=true;
Response response = client.newCall(request).execute(); Response response = client.newCall(request).execute();
result = response.body().toString(); result = response.body().string();
JSONObject json = JSONObject.parseObject(result); JSONObject json = JSONObject.parseObject(result);
if(isLastLevel()) { if(isLastLevel()) {
success = analyToDB(json,files); success = analyToDB(json,files);
@ -282,7 +282,7 @@ public class IdcServiceImpl implements IdcService {
String result = ""; String result = "";
try { try {
Response response = client.newCall(request).execute(); Response response = client.newCall(request).execute();
result = response.body().toString(); result = response.body().string();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save