master
admin 2 years ago
parent a0193fdf5c
commit 21bc4f8de0

@ -272,12 +272,20 @@ 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()) {
if(json.get("code")!=null) {
success = analyToDB(json.getJSONObject("data"),files);
} else {
success = analyToDB(json,files); success = analyToDB(json,files);
}
if(!success) if(!success)
logger.info("fetchData-->解析失败"); logger.info("fetchData-->解析失败");
} else {
if(json.get("code")!=null) {
syncAddTaskStatus(json.getJSONObject("data"),false,success);
} else { } else {
syncAddTaskStatus(json,false,success); syncAddTaskStatus(json,false,success);
} }
}
if(success) { if(success) {
String ret = post(host+"/spssync/common/success",params); String ret = post(host+"/spssync/common/success",params);

Loading…
Cancel
Save