|
@@ -5,6 +5,7 @@ import com.fdkankan.fusion.common.FilePath;
|
|
|
import com.fdkankan.fusion.common.ResultCode;
|
|
|
import com.fdkankan.fusion.common.ResultData;
|
|
|
import com.fdkankan.fusion.common.util.UploadToOssUtil;
|
|
|
+import com.fdkankan.fusion.config.CacheUtil;
|
|
|
import com.fdkankan.fusion.exception.BusinessException;
|
|
|
import com.fdkankan.fusion.httpClient.request.LaserSceneParam;
|
|
|
import com.fdkankan.fusion.request.ScenePram;
|
|
@@ -86,10 +87,16 @@ public class SceneController extends BaseController{
|
|
|
String sceneObjPath =null;
|
|
|
|
|
|
if(type == 2 || type == 5){ //点云
|
|
|
- sceneObjPath = String.format(FilePath.LASER_OSS_PATH, num,num)+"/cloud.js" ;
|
|
|
- fileInfo = uploadToOssUtil.getFileInfo(sceneObjPath);
|
|
|
- String scenePath = String.format(FilePath.LASER_OSS_PATH, num,num);
|
|
|
- size = uploadToOssUtil.getSize(scenePath);
|
|
|
+ String scenePath = null;
|
|
|
+ if(CacheUtil.environment.contains("prod" )){
|
|
|
+ sceneObjPath = String.format(FilePath.LASER_OSS_PATH, num,num)+"/cloud.js" ;
|
|
|
+ scenePath = String.format(FilePath.LASER_OSS_PATH, num,num);
|
|
|
+ }else {
|
|
|
+ sceneObjPath = String.format(FilePath.LASER_OSS_PATH_TEST, num,num)+"/cloud.js" ;
|
|
|
+ scenePath = String.format(FilePath.LASER_OSS_PATH_TEST, num,num);
|
|
|
+ }
|
|
|
+ fileInfo = uploadToOssUtil.getFileInfo(sceneObjPath,"laser-data");
|
|
|
+ size = uploadToOssUtil.getSize(scenePath,"laser-data");
|
|
|
}else {
|
|
|
sceneObjPath = String.format(FilePath.OBJ_OSS_PATH,num) + "/images/3dtiles/tileset.json";
|
|
|
if(!uploadToOssUtil.existKey(sceneObjPath)){
|