改bug
This commit is contained in:
parent
516e81ba91
commit
a53b06385f
|
|
@ -566,23 +566,11 @@ public class EDDataFacadeImpl implements EDDataFacade {
|
||||||
boolean existFile = FileUtil.exist(new File(destZipPath));
|
boolean existFile = FileUtil.exist(new File(destZipPath));
|
||||||
|
|
||||||
if (existFile) {
|
if (existFile) {
|
||||||
return ElectromagneticResultUtil.success(new FileChunkResultDTO(false, new HashSet<>()));
|
return ElectromagneticResultUtil.success(new FileChunkResultDTO(true, new HashSet<>()));
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Integer> uploadedChunks = getUploadedChunks(identifier);
|
List<Integer> uploadedChunks = getUploadedChunks(identifier);
|
||||||
return ElectromagneticResultUtil.success(new FileChunkResultDTO(true, new HashSet<>(uploadedChunks)));
|
return ElectromagneticResultUtil.success(new FileChunkResultDTO(false, new HashSet<>(uploadedChunks)));
|
||||||
//
|
|
||||||
// String destChunkPath = uploadFilePath + identifier + File.separator + fileChunkDTO.getChunkNumber() + UPLOAD_FILE_CHUNK_SUFFIX;
|
|
||||||
// boolean existChunk = FileUtil.exist(new File(destChunkPath));
|
|
||||||
// List<Integer> uploadedChunks = getUploadedChunks(identifier);
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// FileChunkResultDTO res = new FileChunkResultDTO();
|
|
||||||
// res.setSkipUpload(existChunk);
|
|
||||||
// res.setUploaded(new HashSet<>(uploadedChunks));
|
|
||||||
// return ElectromagneticResultUtil.success(res);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue