|
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.fdkankan.common.util.FileUtils;
|
|
import com.fdkankan.common.util.FileUtils;
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
import com.fdkankan.image.MatrixToImageWriterUtil;
|
|
import com.fdkankan.image.MatrixToImageWriterUtil;
|
|
|
|
+import com.fdkankan.ucenter.common.OssPath;
|
|
import com.fdkankan.ucenter.common.PageInfo;
|
|
import com.fdkankan.ucenter.common.PageInfo;
|
|
import com.fdkankan.ucenter.common.constants.ConstantFilePath;
|
|
import com.fdkankan.ucenter.common.constants.ConstantFilePath;
|
|
import com.fdkankan.ucenter.common.constants.UploadFilePath;
|
|
import com.fdkankan.ucenter.common.constants.UploadFilePath;
|
|
@@ -158,9 +159,6 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
scenePlus.setSceneStatus(0);
|
|
scenePlus.setSceneStatus(0);
|
|
this.save(scenePlus);
|
|
this.save(scenePlus);
|
|
|
|
|
|
- cameraDetail.setUsedSpace(cameraDetail.getUsedSpace() + plusExt.getSpace());
|
|
|
|
- cameraDetailService.updateById(cameraDetail);
|
|
|
|
-
|
|
|
|
CompletableFuture.runAsync(() -> {
|
|
CompletableFuture.runAsync(() -> {
|
|
try {
|
|
try {
|
|
// 拷贝场景编辑资源
|
|
// 拷贝场景编辑资源
|
|
@@ -185,8 +183,11 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
String newScenePath = ConstantFilePath.SCENE_V4_PATH + newNum;
|
|
String newScenePath = ConstantFilePath.SCENE_V4_PATH + newNum;
|
|
FileUtils.copyDirectiory(scenePath, newScenePath);
|
|
FileUtils.copyDirectiory(scenePath, newScenePath);
|
|
}
|
|
}
|
|
|
|
+ String newVideos = plusExt.getVideos();
|
|
|
|
+ if(StrUtil.isNotEmpty(newVideos)){
|
|
|
|
+ newVideos = plusExt.getVideos().replaceAll("/data/data" + num, "/scene_view_data/" + newNum + "/data").replaceAll(num, newNum);
|
|
|
|
+ }
|
|
|
|
|
|
- String newVideos = plusExt.getVideos().replaceAll("https://4dkk.4dage.com/data/data" + num, "https://4dkk.4dage.com/scene_view_data/" + newNum + "/data");
|
|
|
|
String oldDataSource = plusExt.getDataSource();
|
|
String oldDataSource = plusExt.getDataSource();
|
|
String newDataSource = sceneProService.setDataSource(plusExt.getDataSource(),time);
|
|
String newDataSource = sceneProService.setDataSource(plusExt.getDataSource(),time);
|
|
|
|
|
|
@@ -276,6 +277,14 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
fYunFileServiceInterface.uploadFile(outPathEn, String.format(UploadFilePath.DOWNLOADS_QRCODE, newNum) + newNum + "_en.png");
|
|
fYunFileServiceInterface.uploadFile(outPathEn, String.format(UploadFilePath.DOWNLOADS_QRCODE, newNum) + newNum + "_en.png");
|
|
scenePlus.setSceneStatus(-2);
|
|
scenePlus.setSceneStatus(-2);
|
|
this.updateById(scenePlus);
|
|
this.updateById(scenePlus);
|
|
|
|
+
|
|
|
|
+ cameraDetail.setUsedSpace(cameraDetail.getUsedSpace() + plusExt.getSpace());
|
|
|
|
+ cameraDetailService.updateById(cameraDetail);
|
|
|
|
+
|
|
|
|
+ if(scenePlus.getPayStatus() == -2){
|
|
|
|
+ sceneProService.updateOssStatus(String.format(OssPath.v4_statusPath,scenePlus.getNum()),-2);
|
|
|
|
+ }
|
|
|
|
+
|
|
log.info("复制场景结束-{}", new Date());
|
|
log.info("复制场景结束-{}", new Date());
|
|
if(scenePlus.getSceneSource() == 4){ //深时复制
|
|
if(scenePlus.getSceneSource() == 4){ //深时复制
|
|
String laserPath = laserService.copyDataSource(oldDataSource,plusExt.getDataSource());
|
|
String laserPath = laserService.copyDataSource(oldDataSource,plusExt.getDataSource());
|