Преглед на файлове

导览视频转换下载

dengsixing преди 2 години
родител
ревизия
07c44803c1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneUploadServiceImpl.java

+ 1 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneUploadServiceImpl.java

@@ -240,7 +240,7 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
         File destFile = File.createTempFile(UUID.randomUUID().toString() ,extName);
         CreateObjUtil.formatMp4(oldFile.getPath(), destFile.getPath());
 
-        if(cn.hutool.core.io.FileUtil.exist(destFile.getPath())){
+        if(!cn.hutool.core.io.FileUtil.exist(destFile.getPath())){
             throw new BusinessException(ErrorCode.FAILURE_CODE_5038);
         }