winter 1 рік тому
джерело
коміт
6db5a8798f
2 змінених файлів з 8 додано та 2 видалено
  1. +4
    -1
      suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java
  2. +4
    -1
      suimangService/src/main/java/com/iformall/service/sm/impl/UserMouldVideoServiceImpl.java

+ 4
- 1
suimangSchedule/src/main/java/com/iformall/schedule/PhotoSpeakSchedule.java Переглянути файл

@@ -101,7 +101,10 @@ public class PhotoSpeakSchedule {
&& !"0.0".equals(videoDetail.getDuration())) {
video.setCoverImg(videoDetail.getCoverURL());
video.setVideoPlayUrl(videoDetail.getVideoUrl());
video.setVideoTime(videoDetail.getDuration());
Double _vt = Double.valueOf(videoDetail.getDuration());
if (null != _vt && _vt > 0) {
video.setVideoTime(videoDetail.getDuration());
}
video.setVideoSize(videoDetail.getSize());
if (video.getVideoStatus() <= 5){
video.setVideoStatus(EnumVideoStatus.upload_success.getCode());


+ 4
- 1
suimangService/src/main/java/com/iformall/service/sm/impl/UserMouldVideoServiceImpl.java Переглянути файл

@@ -494,7 +494,10 @@ public class UserMouldVideoServiceImpl implements UserMouldVideoService {
videoUpd.setId(userMouldVideo.getId());
videoUpd.setCoverImg(videoDetail.getCoverURL());
videoUpd.setVideoPlayUrl(videoDetail.getVideoUrl());
videoUpd.setVideoTime(videoDetail.getDuration());
Double _vt = Double.valueOf(videoDetail.getDuration());
if (null != _vt && _vt > 0) {
videoUpd.setVideoTime(videoDetail.getDuration());
}
videoUpd.setVideoSize(videoDetail.getSize());
videoUpd.setVideoStatus(EnumVideoStatus.upload_success.getCode());
videoUpd.setVideoMsg("视频上传成功");


Завантаження…
Відмінити
Зберегти