dengsixing 2 лет назад
Родитель
Сommit
07c44803c1

+ 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);
         File destFile = File.createTempFile(UUID.randomUUID().toString() ,extName);
         CreateObjUtil.formatMp4(oldFile.getPath(), destFile.getPath());
         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);
             throw new BusinessException(ErrorCode.FAILURE_CODE_5038);
         }
         }