Selaa lähdekoodia

打印上传全景图压缩包名

dengsixing 3 vuotta sitten
vanhempi
commit
1be8b34365

+ 2 - 0
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneEditInfoServiceImpl.java

@@ -615,6 +615,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
     public ResultData uploadPanorama(String num, MultipartFile file) throws Exception {
 
         //校验压缩包格式
+        log.info("全景图压缩包文件名:" + file.getOriginalFilename());
         if(!file.getOriginalFilename().endsWith(".zip")){
             throw new BusinessException(ErrorCode.FAILURE_CODE_7015);
         }
@@ -736,6 +737,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
         CreateObjUtil.build3dModel(target , "1");
 
         String uploadJsonPath= target + File.separator + "results" +File.separator+"upload.json";
+        Thread.sleep(2000);
         boolean exist = ComputerUtil.checkComputeCompleted(uploadJsonPath, 3, 5000);
         if(!exist){
             throw new BusinessException(ErrorCode.FAILURE_CODE_5042);