This commit is contained in:
chenxudong 2024-11-25 09:01:45 +08:00
parent 516e81ba91
commit a53b06385f
1 changed files with 2 additions and 14 deletions

View File

@ -566,23 +566,11 @@ public class EDDataFacadeImpl implements EDDataFacade {
boolean existFile = FileUtil.exist(new File(destZipPath));
if (existFile) {
return ElectromagneticResultUtil.success(new FileChunkResultDTO(false, new HashSet<>()));
return ElectromagneticResultUtil.success(new FileChunkResultDTO(true, new HashSet<>()));
}
List<Integer> uploadedChunks = getUploadedChunks(identifier);
return ElectromagneticResultUtil.success(new FileChunkResultDTO(true, 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);
return ElectromagneticResultUtil.success(new FileChunkResultDTO(false, new HashSet<>(uploadedChunks)));
}