|
|
@@ -87,7 +87,7 @@ public class PhotoSpeakSchedule { |
|
|
|
*/ |
|
|
|
@Scheduled(cron = "0 1/5 * * * *?") // 每五分钟检查一次 |
|
|
|
public void userVideoDetailSchedule() { |
|
|
|
List<PhotoSpeakVideo> videos = photoSpeakVideoService.getUpLoadIngList(); |
|
|
|
List<PhotoSpeakVideo> videos = photoSpeakVideoService.getNotHaveUrl(); |
|
|
|
if (videos != null && videos.size() > 0) { |
|
|
|
for (PhotoSpeakVideo video : videos) { |
|
|
|
try { |
|
|
@@ -99,7 +99,11 @@ public class PhotoSpeakSchedule { |
|
|
|
video.setVideoPlayUrl(videoDetail.getVideoUrl()); |
|
|
|
video.setVideoTime(videoDetail.getDuration()); |
|
|
|
video.setVideoSize(videoDetail.getSize()); |
|
|
|
video.setVideoStatus(EnumVideoStatus.upload_success.getCode()); |
|
|
|
if (video.getVideoStatus() <= 5){ |
|
|
|
video.setVideoStatus(EnumVideoStatus.upload_success.getCode()); |
|
|
|
}else { |
|
|
|
video.setVideoStatus(EnumVideoStatus.hy_upload_success.getCode()); |
|
|
|
} |
|
|
|
photoSpeakVideoService.updateById(video); |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
@@ -112,7 +116,7 @@ public class PhotoSpeakSchedule { |
|
|
|
/** |
|
|
|
* 超分上传阿里云 |
|
|
|
*/ |
|
|
|
@Scheduled(cron = "0 */30 * * * *?") // 每半小时检查一次 |
|
|
|
// @Scheduled(cron = "0 */30 * * * *?") // 每半小时检查一次 |
|
|
|
public void userVideoHyUploadSchedule() { |
|
|
|
List<PhotoSpeakVideo> videos = photoSpeakVideoService.getNotHyUploadList(); |
|
|
|
if (videos != null && videos.size() > 0) { |
|
|
@@ -129,7 +133,7 @@ public class PhotoSpeakSchedule { |
|
|
|
/** |
|
|
|
* 获取超分时长和大小 |
|
|
|
*/ |
|
|
|
@Scheduled(cron = "0 1/5 * * * *?") // 每五分钟检查一次 |
|
|
|
// @Scheduled(cron = "0 1/5 * * * *?") // 每五分钟检查一次 |
|
|
|
public void userVideoHyDetailSchedule() { |
|
|
|
List<PhotoSpeakVideo> videos = photoSpeakVideoService.getUpLoadHyIngList(); |
|
|
|
if (videos != null && videos.size() > 0) { |
|
|
|