|
@@ -844,7 +844,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
fYunFileServiceInterface.copyFileInBucket(sourcePath,targetPath);
|
|
|
File fileData = new File(SceneResourcePath.nasBasePath + sourcePath);
|
|
|
if(fileData.exists()){
|
|
|
- sceneCommonService.delLink(fileData.getPath());
|
|
|
+ if(targetPath.contains("images")){
|
|
|
+ sceneCommonService.delLink(fileData.getPath());
|
|
|
+ }
|
|
|
cn.hutool.core.io.FileUtil.copyContent(fileData,new File(SceneResourcePath.nasBasePath + targetPath),true);
|
|
|
}
|
|
|
}
|