|
@@ -17,6 +17,7 @@ import com.fdkankan.contro.bean.*;
|
|
|
import com.fdkankan.contro.entity.*;
|
|
|
import com.fdkankan.contro.service.*;
|
|
|
import com.fdkankan.contro.vo.SceneEditControlsVO;
|
|
|
+import com.fdkankan.fyun.config.FYunFileConfig;
|
|
|
import com.fdkankan.fyun.constant.FYunTypeEnum;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.image.MatrixToImageWriterUtil;
|
|
@@ -57,13 +58,6 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
private String mainUrl;
|
|
|
@Value("${scene.pro.new.url}")
|
|
|
private String sceneProNewUrl;
|
|
|
- @Value("${upload.type}")
|
|
|
- private String ossType;
|
|
|
- @Value("${oss.prefix.ali}")
|
|
|
- private String prefixAli;
|
|
|
- @Value("${oss.bucket:4dkankan}")
|
|
|
- private String bucket;
|
|
|
-
|
|
|
@Autowired
|
|
|
private ISceneFileBuildService sceneFileBuildService;
|
|
|
@Autowired
|
|
@@ -75,6 +69,9 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
@Autowired
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
@Autowired
|
|
|
+ private FYunFileConfig fYunFileConfig;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
private RedisUtil redisUtil;
|
|
|
@Autowired
|
|
|
private IScenePlusService scenePlusService;
|
|
@@ -421,25 +418,14 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
videosJson.put("data", jsonArray);
|
|
|
if(Objects.nonNull(videoVersion) && videoVersion >= 4){
|
|
|
videosJson.put("version", 3);
|
|
|
- if(FYunTypeEnum.OSS.code().equals(fYunFileService.getFyunType())){
|
|
|
- videosJson.put("upPath", prefixAli + "data/data" + projectNum + "/Up.xml");
|
|
|
- }
|
|
|
- if(FYunTypeEnum.AWS.code().equals(fYunFileService.getFyunType())){
|
|
|
- videosJson.put("upPath", ConstantUrl.PREFIX_AWS + "data/data" + projectNum + "/Up.xml");
|
|
|
- }
|
|
|
+ videosJson.put("upPath", fYunFileConfig.getHost() + "data/data" + projectNum + "/Up.xml");
|
|
|
if(cameraType == 13){
|
|
|
//转台相机
|
|
|
videosJson.put("upPath", videosJson.getString("upPath").replace(".xml", ".txt"));
|
|
|
}
|
|
|
}else {
|
|
|
videosJson.put("version", 1);
|
|
|
- if("oss".equals(ossType)){
|
|
|
- videosJson.put("upPath", prefixAli + "data/data" + projectNum + "/Up2.xml");
|
|
|
- }
|
|
|
- if("aws".equals(ossType)){
|
|
|
- videosJson.put("upPath", ConstantUrl.PREFIX_AWS + "data/data" + projectNum + "/Up2.xml");
|
|
|
- }
|
|
|
-
|
|
|
+ videosJson.put("upPath", fYunFileConfig.getHost() + "data/data" + projectNum + "/Up2.xml");
|
|
|
if(cameraType == 13){
|
|
|
//转台相机
|
|
|
videosJson.put("upPath", videosJson.getString("upPath").replace(".xml", ".txt"));
|
|
@@ -448,12 +434,7 @@ public class BuildScenePostServiceImpl implements IBuildScenePostService {
|
|
|
|
|
|
if(cameraType == 5 || cameraType == 6){
|
|
|
videosJson.put("version", 1);
|
|
|
- if("oss".equals(ossType)){
|
|
|
- videosJson.put("upPath", prefixAli + "data/data" + projectNum + "/stitch_params.txt");
|
|
|
- }
|
|
|
- if("aws".equals(ossType)){
|
|
|
- videosJson.put("upPath", ConstantUrl.PREFIX_AWS + "data/data" + projectNum + "/stitch_params.txt");
|
|
|
- }
|
|
|
+ videosJson.put("upPath", fYunFileConfig.getHost() + "data/data" + projectNum + "/stitch_params.txt");
|
|
|
}
|
|
|
|
|
|
return videosJson;
|