|
|
@@ -54,6 +54,8 @@ public class Scene3dfamilyServiceImpl extends ServiceImpl<IScene3dfamilyMapper,
|
|
|
@Autowired
|
|
|
@Qualifier("uploadToOssUtil")
|
|
|
UploadToOssUtil uploadToOssUtil;
|
|
|
+ @Value("${oss.bucket}")
|
|
|
+ private String bucket;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
@@ -78,7 +80,7 @@ public class Scene3dfamilyServiceImpl extends ServiceImpl<IScene3dfamilyMapper,
|
|
|
//生成vision.json
|
|
|
sceneProService.downloadVisionData(SceneEditParamVO.builder().num(sceneProVo.getNum()).build());
|
|
|
//拉取data
|
|
|
- CreateObjUtil.ossUtilCp("data" + File.separator + "data" + sceneProVo.getNum() + File.separator,
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "data" + File.separator + "data" + sceneProVo.getNum() + File.separator,
|
|
|
path + File.separator + "scene" + File.separator + "data" + File.separator + "data" + sceneProVo.getNum());
|
|
|
|
|
|
|
|
|
@@ -91,29 +93,29 @@ public class Scene3dfamilyServiceImpl extends ServiceImpl<IScene3dfamilyMapper,
|
|
|
+ sceneProVo.getNum() + File.separator + "getinfo.json", dataJson.toString());
|
|
|
|
|
|
//拉取images
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "floorLogoImg.png",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "floorLogoImg.png",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "floorplan.png",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "floorplan.png",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "logo-main.png",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "logo-main.png",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "logo-main-en.png",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "logo-main-en.png",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "smallPic.jpg",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "smallPic.jpg",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "thumbBigImg.jpg",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "thumbBigImg.jpg",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "thumbSmallImg.jpg",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "thumbSmallImg.jpg",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
- CreateObjUtil.ossUtilCp("images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "pan",
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "images" + File.separator + "images" + sceneProVo.getNum() + File.separator + "pan",
|
|
|
path + File.separator + "scene" + File.separator + "images" + File.separator + "images" + sceneProVo.getNum());
|
|
|
|
|
|
//拉取video
|
|
|
- CreateObjUtil.ossUtilCp("video" + File.separator + "video" + sceneProVo.getNum() + File.separator,
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "video" + File.separator + "video" + sceneProVo.getNum() + File.separator,
|
|
|
path + File.separator + "scene" + File.separator + "video" + File.separator + "video" + sceneProVo.getNum());
|
|
|
|
|
|
//拉取voice
|
|
|
- CreateObjUtil.ossUtilCp("voice" + File.separator + "voice" + sceneProVo.getNum() + File.separator,
|
|
|
+ CreateObjUtil.ossUtilCp(bucket, "voice" + File.separator + "voice" + sceneProVo.getNum() + File.separator,
|
|
|
path + File.separator + "scene" + File.separator + "voice" + File.separator + "voice" + sceneProVo.getNum());
|
|
|
|
|
|
//压缩zip
|