|
@@ -97,6 +97,10 @@ public class DownloadTourVideoServiceImpl extends ServiceImpl<IDownloadTourVideo
|
|
String destPath = null;
|
|
String destPath = null;
|
|
try {
|
|
try {
|
|
String destFileName = UUID.randomUUID().toString() + ".mp4";
|
|
String destFileName = UUID.randomUUID().toString() + ".mp4";
|
|
|
|
+ File destFile = new File(destFileName);
|
|
|
|
+ if(!destFile.getParentFile().exists()){
|
|
|
|
+ destFile.getParentFile().mkdir();
|
|
|
|
+ }
|
|
destPath = ConstantFilePath.SCENE_V4_PATH + downloadTourVideo.getNum() + "tour/" + destFileName;
|
|
destPath = ConstantFilePath.SCENE_V4_PATH + downloadTourVideo.getNum() + "tour/" + destFileName;
|
|
String srcPath = downloadTourVideo.getLocalPath();
|
|
String srcPath = downloadTourVideo.getLocalPath();
|
|
CreateObjUtil.formatMp4(srcPath, destPath);
|
|
CreateObjUtil.formatMp4(srcPath, destPath);
|