|
@@ -268,18 +268,21 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
|
|
|
// 拷贝场景编辑资源
|
|
|
String oldEditPath = String.format(UploadFilePath.EDIT_PATH, oldNum);
|
|
|
String newEditPath = String.format(UploadFilePath.EDIT_PATH, newNum);
|
|
|
- ossUtil.copyObject(oldBucket, oldEditPath, bucket, newEditPath);
|
|
|
+ FileUtil.copyContent(new File(FdkkLaserConfig.getProfile(oldBucket) + File.separator + oldEditPath),
|
|
|
+ new File(FdkkLaserConfig.getProfile(bucket) + File.separator + newEditPath), true);
|
|
|
|
|
|
// 拷贝场景展示资源
|
|
|
String oldViewPath = String.format(UploadFilePath.VIEW_PATH, oldNum);
|
|
|
String newViewPath = String.format(UploadFilePath.VIEW_PATH, newNum);
|
|
|
- ossUtil.copyObject(oldBucket, oldViewPath, bucket, newViewPath);
|
|
|
+ FileUtil.copyContent(new File(FdkkLaserConfig.getProfile(oldBucket) + File.separator + oldViewPath),
|
|
|
+ new File(FdkkLaserConfig.getProfile(bucket) + File.separator + newViewPath), true);
|
|
|
|
|
|
//复制计算目录
|
|
|
FileUtil.copyContent(new File(oldDataSource), new File(dataSource), true);
|
|
|
|
|
|
scenePlus.setSceneStatus(-2);
|
|
|
scenePlusService.updateById(scenePlus);
|
|
|
+ log.info("复制成功。。。。。");
|
|
|
|
|
|
}catch (Exception e){
|
|
|
log.error("复制场景失败-V4-sceneNum:{},error:{}",oldNum,e);
|