|
@@ -846,7 +846,25 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
if(fileData.exists()){
|
|
if(fileData.exists()){
|
|
log.info("--------------------------"+ targetPath.contains("images"));
|
|
log.info("--------------------------"+ targetPath.contains("images"));
|
|
if(targetPath.contains("images")){
|
|
if(targetPath.contains("images")){
|
|
- sceneCommonService.delLink(fileData.getPath());
|
|
|
|
|
|
+ String panPath = fileData.getPath() +"/panorama";
|
|
|
|
+ File file = new File(panPath);
|
|
|
|
+ log.info("delLink--filePath:{}",fileData.getPath());
|
|
|
|
+ log.info("delLink--filePath:{}",file.exists());
|
|
|
|
+ if(file.exists()){
|
|
|
|
+ File[] files = file.listFiles();
|
|
|
|
+ log.info("delLink--filePath:{}",files);
|
|
|
|
+ log.info("delLink--filePath:{}",files.length);
|
|
|
|
+ if(files == null || files.length == 0){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ for (File file1 : files) {
|
|
|
|
+ log.info("delLink--filePath:{}",file1.getPath());
|
|
|
|
+ String linkPath =file1.getPath() + "/capture";
|
|
|
|
+ if(new File(linkPath).exists()){
|
|
|
|
+ org.apache.commons.io.FileUtils.deleteQuietly(new File(linkPath));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
cn.hutool.core.io.FileUtil.copyContent(fileData,new File(SceneResourcePath.nasBasePath + targetPath),true);
|
|
cn.hutool.core.io.FileUtil.copyContent(fileData,new File(SceneResourcePath.nasBasePath + targetPath),true);
|
|
}
|
|
}
|