浏览代码

Merge branch 'feature-slimming-nas-20230210-dsx' into test

dsx 2 年之前
父节点
当前提交
663289938d
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/main/java/com/fdkankan/ucenter/service/impl/SceneProServiceImpl.java

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

@@ -1,5 +1,6 @@
 package com.fdkankan.ucenter.service.impl;
 
+import cn.hutool.core.collection.CollUtil;
 import cn.hutool.core.io.FileUtil;
 import cn.hutool.json.JSONUtil;
 import com.alibaba.fastjson.JSONObject;
@@ -1226,9 +1227,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
         String ossReconstruction = ossResultPath + "caches/reconstruction/";
         if(!fYunFileService.fileExist(ossReconstruction + "final.bin")
                 || !fYunFileService.fileExist(ossReconstruction + "chunk.json")
-                || !fYunFileService.fileExist(ossResultPath + "caches/images")
-                || !fYunFileService.fileExist(ossResultPath + "caches/depthmap")
-                || !fYunFileService.fileExist(ossResultPath + "caches/depthmap_csc")
+                || CollUtil.isEmpty(fYunFileService.listRemoteFiles(ossResultPath + "caches/images"))
+                || CollUtil.isEmpty(fYunFileService.listRemoteFiles(ossResultPath + "caches/depthmap"))
+                || CollUtil.isEmpty(fYunFileService.listRemoteFiles(ossResultPath + "caches/depthmap_csc"))
                 || !fYunFileService.fileExist(ossResultPath + "caches/panorama.json")
                 || !fYunFileService.fileExist(ossResultPath + "results/laserData/laser.ply")){
             throw new BusinessException(SceneConstant.FAILURE_CODE_5038, SceneConstant.FAILURE_MSG_5038);