master
admin 2 years ago
parent a0193fdf5c
commit 21bc4f8de0

@ -272,11 +272,19 @@ public class IdcServiceImpl implements IdcService {
result = response.body().string(); result = response.body().string();
JSONObject json = JSONObject.parseObject(result); JSONObject json = JSONObject.parseObject(result);
if(isLastLevel()) { if(isLastLevel()) {
success = analyToDB(json,files); if(json.get("code")!=null) {
success = analyToDB(json.getJSONObject("data"),files);
} else {
success = analyToDB(json,files);
}
if(!success) if(!success)
logger.info("fetchData-->解析失败"); logger.info("fetchData-->解析失败");
} else { } else {
syncAddTaskStatus(json,false,success); if(json.get("code")!=null) {
syncAddTaskStatus(json.getJSONObject("data"),false,success);
} else {
syncAddTaskStatus(json,false,success);
}
} }
if(success) { if(success) {

Loading…
Cancel
Save