You've already forked FrameTour-BE
bug修改,根性视频meta信息
This commit is contained in:
@ -196,6 +196,9 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
goodsDetailVO.setVideoUrl(videoRespVO.getVideoUrl());
|
||||
goodsDetailVO.setTemplateCoverUrl(videoRespVO.getTemplateCoverUrl());
|
||||
goodsDetailVO.setCreateTime(videoRespVO.getCreateTime());
|
||||
goodsDetailVO.setHeight(videoRespVO.getHeight());
|
||||
goodsDetailVO.setWidth(videoRespVO.getWidth());
|
||||
goodsDetailVO.setDuration(videoRespVO.getDuration());
|
||||
if (userId == null) {
|
||||
goodsDetailVO.setIsBuy(0);
|
||||
goodsDetailVO.setShare(true);
|
||||
|
@ -364,6 +364,11 @@ public class TaskTaskServiceImpl implements TaskService {
|
||||
VideoEntity video = videoMapper.findByTaskId(taskId);
|
||||
if (video != null) {
|
||||
video.setVideoUrl(task.getVideoUrl());
|
||||
if (req.getVideoInfo() != null) {
|
||||
video.setHeight(req.getVideoInfo().getHeight());
|
||||
video.setWidth(req.getVideoInfo().getWidth());
|
||||
video.setDuration(req.getVideoInfo().getDuration());
|
||||
}
|
||||
videoMapper.update(video);
|
||||
} else {
|
||||
video = new VideoEntity();
|
||||
@ -374,6 +379,11 @@ public class TaskTaskServiceImpl implements TaskService {
|
||||
video.setWorkerId(worker.getId());
|
||||
video.setVideoUrl(task.getVideoUrl());
|
||||
video.setCreateTime(new Date());
|
||||
if (req.getVideoInfo() != null) {
|
||||
video.setHeight(req.getVideoInfo().getHeight());
|
||||
video.setWidth(req.getVideoInfo().getWidth());
|
||||
video.setDuration(req.getVideoInfo().getDuration());
|
||||
}
|
||||
videoMapper.add(video);
|
||||
}
|
||||
int isBuy = 0;
|
||||
|
Reference in New Issue
Block a user