文件下载

master
chengqf 2 years ago
parent ce60afd9b2
commit a912650a2d

@ -106,8 +106,10 @@ public class FileServiceImpl implements FileService {
if(map!=null&&map.get("syncIp")!=null) {
String result = IDCUtils.post(map.get("syncIp").toString()+"/spssync/file/downloadFile", params);
JSONObject object = JSON.parseObject(result);
boolean success = false;
if(IDCUtils.isJson(result)) {
JSONObject object = JSON.parseObject(result);
if(object.getInteger("code")==20000) {
String[] files = params.get("fileName").toString().split(",");
success = true;
@ -116,6 +118,7 @@ public class FileServiceImpl implements FileService {
success = false;
}
}
}
if(!success)
return ResultVOUtils.error(9999,"失败");
} else {

Loading…
Cancel
Save