|
@@ -1370,29 +1370,6 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
if (detailEntity.getType() == 9) {
|
|
if (detailEntity.getType() == 9) {
|
|
cameraType = 13L;
|
|
cameraType = 13L;
|
|
}
|
|
}
|
|
- // 拷贝资源至新的资源路径
|
|
|
|
- String[] newDataPath = dataSource.split("/");
|
|
|
|
- newDataPath[4] = newDataPath[4] + "_" + System.currentTimeMillis();
|
|
|
|
- String time = com.fdkankan.common.util.DateUtil.date2String(new Date(), com.fdkankan.common.util.DateUtil.YYYYMMDDHHMMSSSSS_DATA_FORMAT);
|
|
|
|
- newDataPath[5] = newDataPath[5].split("_")[0] + "_" + time;
|
|
|
|
- String newDataSource = Arrays.stream(newDataPath).collect(Collectors.joining("/"));
|
|
|
|
-
|
|
|
|
- String newFYunPath = ConstantFilePath.OSS_PREFIX + newDataSource.replace(ConstantFilePath.BUILD_MODEL_PATH, "")
|
|
|
|
- .replace(ConstantFilePath.BUILD_MODEL_LASER_PATH, "");
|
|
|
|
-
|
|
|
|
- fYunFileService.copyFileInBucket(fYunPath,newFYunPath);
|
|
|
|
-
|
|
|
|
- fdageData.put("uuidtime",time);
|
|
|
|
- fYunFileService.uploadFile(fdageData.toJSONString().getBytes(),newFYunPath+"/data.fdage");
|
|
|
|
-
|
|
|
|
- dataSource = newDataSource;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- Long cameraType = 11L;
|
|
|
|
- //判断是否转台相机
|
|
|
|
- if (detailEntity.getType() == 9) {
|
|
|
|
- cameraType = 13L;
|
|
|
|
- }
|
|
|
|
|
|
|
|
if (detailEntity.getType() == 10) {
|
|
if (detailEntity.getType() == 10) {
|
|
cameraType = 14L;
|
|
cameraType = 14L;
|