Bläddra i källkod

全景照片下载

dengsixing 3 år sedan
förälder
incheckning
7064657d36

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

@@ -4567,8 +4567,10 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
             String meshPath =  String.format(ConstantFilePath.DATABUFFER_FORMAT, sceneNum) + "mesh";
             String meshPath =  String.format(ConstantFilePath.DATABUFFER_FORMAT, sceneNum) + "mesh";
             FileUtils.deleteDirectory(meshPath);
             FileUtils.deleteDirectory(meshPath);
             CreateObjUtil.ossUtilCp(dataViewPath + "mesh", meshPath);
             CreateObjUtil.ossUtilCp(dataViewPath + "mesh", meshPath);
-            log.info("meshPath="+meshPath);
             log.info("meshPath="+meshPath.concat("/mesh"));
             log.info("meshPath="+meshPath.concat("/mesh"));
+            if(!new File(meshPath.concat("/mesh")).exists()){
+                throw new BusinessException(ErrorCode.FAILURE_CODE_7006);
+            }
             log.info(new File(meshPath.concat("/mesh")).listFiles().toString());
             log.info(new File(meshPath.concat("/mesh")).listFiles().toString());
             if(new File(meshPath.concat("/mesh")).listFiles().length > 0){
             if(new File(meshPath.concat("/mesh")).listFiles().length > 0){
                 for(File file : new File(meshPath.concat("/mesh")).listFiles()){
                 for(File file : new File(meshPath.concat("/mesh")).listFiles()){