|
@@ -670,7 +670,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
* @param newNum
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- private void downloadFromOldNumFromOss(String sceneNum, String newNum) throws Exception {
|
|
|
+ private void downloadFromOldNumFromOss(String sceneNum, String newNum) {
|
|
|
ShellUtil.yunDownload("images/images" + sceneNum + "/", ConstantFilePath.SCENE_PATH + "images/images" + newNum);
|
|
|
ShellUtil.yunDownload("data/data" + sceneNum + "/", ConstantFilePath.SCENE_PATH + "data/data" + newNum);
|
|
|
ShellUtil.yunDownload("voice/voice" + sceneNum + "/", ConstantFilePath.SCENE_PATH + "voice/voice" + newNum);
|
|
@@ -712,7 +712,11 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
FileUtils.delAllFile(newDataSource);
|
|
|
|
|
|
- FileUtils.copyFolderAllFiles(oldDataSource+"/",newDataSource+"/", true);
|
|
|
+ try {
|
|
|
+ FileUtils.copyFolderAllFiles(oldDataSource+"/",newDataSource+"/", true);
|
|
|
+ }catch (Exception e){
|
|
|
+ log.error("dataSource复制失败,{}不存在",oldDataSource);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
@Override
|