|
@@ -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);
|