|
@@ -189,7 +189,7 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
|
|
|
Set<String> cacheKeys = new ConcurrentHashSet<>();
|
|
Set<String> cacheKeys = new ConcurrentHashSet<>();
|
|
|
|
|
|
- Map<String, List<String>> allFiles = this.getAllFiles(num, v4localPath, bucket);
|
|
|
|
|
|
+ Map<String, List<String>> allFiles = this.getAllFiles(num, FdkkLaserConfig.getProfile("")+v4localPath, bucket);
|
|
List<String> ossFilePaths = allFiles.get("ossFilePaths");
|
|
List<String> ossFilePaths = allFiles.get("ossFilePaths");
|
|
List<String> v4localFilePaths = allFiles.get("localFilePaths");
|
|
List<String> v4localFilePaths = allFiles.get("localFilePaths");
|
|
|
|
|
|
@@ -198,7 +198,7 @@ public class SceneDownloadHandlerServiceImpl {
|
|
AtomicInteger count = new AtomicInteger(0);
|
|
AtomicInteger count = new AtomicInteger(0);
|
|
|
|
|
|
//定义压缩包
|
|
//定义压缩包
|
|
- zipPath = String.format(this.zipLocalFormat, num);
|
|
|
|
|
|
+ zipPath = String.format(FdkkLaserConfig.getProfile("")+this.zipLocalFormat, num);
|
|
File zipFile = new File(zipPath);
|
|
File zipFile = new File(zipPath);
|
|
if(!zipFile.getParentFile().exists()){
|
|
if(!zipFile.getParentFile().exists()){
|
|
zipFile.getParentFile().mkdirs();
|
|
zipFile.getParentFile().mkdirs();
|
|
@@ -376,7 +376,7 @@ public class SceneDownloadHandlerServiceImpl {
|
|
}
|
|
}
|
|
|
|
|
|
private void zipLocalFiles(List<String> localFilePaths, String num, AtomicInteger count, int total, String version, String sourcePath) throws Exception{
|
|
private void zipLocalFiles(List<String> localFilePaths, String num, AtomicInteger count, int total, String version, String sourcePath) throws Exception{
|
|
- String localPath = "v4".equals(version) ? this.v4localPath : this.v3localPath;
|
|
|
|
|
|
+ String localPath = "v4".equals(version) ? FdkkLaserConfig.getProfile("")+this.v4localPath : this.v3localPath;
|
|
for (String localFilePath : localFilePaths) {
|
|
for (String localFilePath : localFilePaths) {
|
|
try (FileInputStream in = new FileInputStream(localFilePath)){
|
|
try (FileInputStream in = new FileInputStream(localFilePath)){
|
|
// this.zipInputStream(out, localFilePath.replace(v3localPath, ""), in);
|
|
// this.zipInputStream(out, localFilePath.replace(v3localPath, ""), in);
|