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