lyhzzz 2 years ago
parent
commit
cf8b687390

+ 1 - 1
src/main/java/com/fdkankan/ucenter/service/impl/SceneCommonService.java

@@ -238,7 +238,7 @@ public class SceneCommonService {
                 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));
+                    FileUtil.del(file1);
                 }
             }
         }

+ 1 - 1
src/main/java/com/fdkankan/ucenter/service/impl/SceneProServiceImpl.java

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