|
@@ -260,10 +260,10 @@ public class CaseDownService {
|
|
|
sceneData.setCutModelPath(sceneData.getCutModelPath().replace("/oss/","/swkk/"+sceneData.getNum()+"/wwwroot/"));
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(sceneData.getSurveillancePath())){
|
|
|
- sceneData.setCutModelPath(sceneData.getSurveillancePath().replace("/oss/","/swkk/"+sceneData.getNum()+"/wwwroot/"));
|
|
|
+ sceneData.setSurveillancePath(sceneData.getSurveillancePath().replace("/oss/","/swkk/"+sceneData.getNum()+"/wwwroot/"));
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(sceneData.getSceneJsonPath())){
|
|
|
- sceneData.setCutModelPath(sceneData.getSceneJsonPath().replace("/oss/","/swkk/"+sceneData.getNum()+"/wwwroot/"));
|
|
|
+ sceneData.setSceneJsonPath(sceneData.getSceneJsonPath().replace("/oss/","/swkk/"+sceneData.getNum()+"/wwwroot/"));
|
|
|
}
|
|
|
|
|
|
//下载模型
|
|
@@ -306,7 +306,17 @@ public class CaseDownService {
|
|
|
|
|
|
}
|
|
|
if(sceneData.getModelId() != null){
|
|
|
- jsonObject.put(basePath+model+sceneData.getModelId(), ResultData.ok(modelService.getInfo(sceneData.getModelId())));
|
|
|
+ SceneVo info = modelService.getInfo(sceneData.getModelId());
|
|
|
+ if(StringUtils.isNotBlank(info.getCutModelPath())){
|
|
|
+ info.setCutModelPath(info.getCutModelPath().replace("/oss/","/swkk/"+info.getNum()+"/wwwroot/"));
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(info.getSurveillancePath())){
|
|
|
+ info.setSurveillancePath(info.getSurveillancePath().replace("/oss/","/swkk/"+info.getNum()+"/wwwroot/"));
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(info.getSceneJsonPath())){
|
|
|
+ info.setSceneJsonPath(info.getSceneJsonPath().replace("/oss/","/swkk/"+info.getNum()+"/wwwroot/"));
|
|
|
+ }
|
|
|
+ jsonObject.put(basePath+model+sceneData.getModelId(), ResultData.ok(info));
|
|
|
}
|
|
|
}
|
|
|
jsonObject.put(basePath+caseScene+caseId, ResultData.ok(sceneVos));
|
|
@@ -353,6 +363,7 @@ public class CaseDownService {
|
|
|
jsonObject.put(basePath+caseTagPoint+tag.getTagId(), ResultData.ok(caseTagPointService.allList(tag.getTagId())));
|
|
|
downResources(caseId,tag.getTagImgUrl());
|
|
|
downResource(caseId,tag.getHotIconUrl());
|
|
|
+ downResource(caseId,tag.getAudio());
|
|
|
}
|
|
|
|
|
|
jsonObject.put(basePath+casePathInfoUrl+caseId, ResultData.ok(casePathService.getByCaseId(caseId)));
|
|
@@ -387,8 +398,13 @@ public class CaseDownService {
|
|
|
}
|
|
|
jsonObject.put(basePath+caseImg+caseId, ResultData.ok(caseImgList));
|
|
|
|
|
|
-
|
|
|
- jsonObject.put(basePath+caseAnimationUrl+caseId, ResultData.ok(animationService.getListByCaseId(caseId)));
|
|
|
+ List<CaseAnimation> list = animationService.getListByCaseId(caseId);
|
|
|
+ for (CaseAnimation caseAnimation : list) {
|
|
|
+ if(StringUtils.isNotBlank(caseAnimation.getUrl())){
|
|
|
+ downResource(caseId,caseAnimation.getUrl());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ jsonObject.put(basePath+caseAnimationUrl+caseId, ResultData.ok(list));
|
|
|
jsonObject.put(basePath+getMapConfig, ResultData.ok(mapConfigService.list()));
|
|
|
|
|
|
|