|
@@ -1287,11 +1287,20 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
|
|
|
//下载mesh到本地
|
|
|
String meshOssPath = String.format(UploadFilePath.DATA_VIEW_PATH, num) + "mesh/";
|
|
|
- String meshLocalPath = String.format(ConstantFilePath.SCENE_DATA_PATH_V4, num) + "mesh";
|
|
|
+ String meshLocalPath = String.format(ConstantFilePath.SCENE_DATA_PATH_V4, num) + "mesh/";
|
|
|
String zipName = num + "_mesh.zip";
|
|
|
String zipFilePath = String.format(ConstantFilePath.SCENE_DATA_PATH_V4, num) + zipName;
|
|
|
+ List<String> keys = fYunFileService.listRemoteFiles(bucket, meshOssPath);
|
|
|
//下载
|
|
|
- fYunFileService.downloadFileByCommand(bucket, meshLocalPath, meshOssPath);
|
|
|
+ keys.stream().filter(v->{
|
|
|
+ if(v.contains("/mesh/floor_") && !v.contains("lod_0")){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }).forEach(v->{
|
|
|
+ fYunFileService.downloadFile(bucket, v, v.replace(meshOssPath, meshLocalPath));
|
|
|
+ });
|
|
|
+// fYunFileService.downloadFileByCommand(bucket, meshLocalPath, meshOssPath);
|
|
|
//打包
|
|
|
ZipUtil.zip(meshLocalPath,zipFilePath);
|
|
|
//上传压缩包
|