Browse Source

多元融合

lyhzzz 3 tuần trước cách đây
mục cha
commit
e0d1182f22

+ 1 - 1
src/main/java/com/fdkankan/fusion/common/util/VideoUtil.java

@@ -49,7 +49,7 @@ public class VideoUtil {
             //删除生成的ts文件
             for (String filePath : voidTS) {
                 File file = new File(filePath);
-                //file.delete();
+                file.delete();
             }
             return fileName;
         } catch (Exception e) {

+ 5 - 5
src/main/java/com/fdkankan/fusion/service/impl/CaseVideoServiceImpl.java

@@ -181,11 +181,11 @@ public class CaseVideoServiceImpl extends ServiceImpl<ICaseVideoMapper, CaseVide
                     redisUtil.set(RedisKeyUtil.mergerVideoKey + videoFolder.getVideoFolderId(), "-1");
                     log.info("合并视频出错:",e);
                 }finally {
-//                    for (String path : filePathSetAll) {
-//                        FileUtil.del(path);
-//                    }
-//                    FileUtil.del(mergeLocalPath);
-//                    FileUtil.del(mergeLocalPathImg);
+                    for (String path : filePathSetAll) {
+                        FileUtil.del(path);
+                    }
+                    FileUtil.del(mergeLocalPath);
+                    FileUtil.del(mergeLocalPathImg);
                 }
             }
         }).start();