浏览代码

fix

photo
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("视频上传成功");


正在加载...
取消
保存