lyhzzz 3 years ago
parent
commit
9dcd97c232

+ 9 - 9
src/main/java/com/fdkankan/fusion/service/impl/ModelServiceImpl.java

@@ -142,15 +142,15 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
             this.saveOrUpdate(model);
             throw e;
         }finally {
-//            if(newObjFile!=null){
-//                FileUtil.del(newObjFile);
-//            }
-//            if(objPathFile!=null){
-//                FileUtil.del(objPathFile);
-//            }
-//            if(mntFile!=null){
-//                FileUtil.del(mntFile);
-//            }
+            if(newObjFile!=null){
+                FileUtil.del(newObjFile);
+            }
+            if(objPathFile!=null){
+                FileUtil.del(objPathFile);
+            }
+            if(mntFile!=null){
+                FileUtil.del(mntFile);
+            }
         }
 
     }