|
@@ -24,6 +24,7 @@ import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -84,6 +85,11 @@ public class ArticleVideoAuditService {
|
|
|
videoItem.setVideoId(video.getId());
|
|
|
videoItem.setTitle(video.getVideoTitle());
|
|
|
videoItem.setVideoUrl(cdnUrl + video.getVideoOssPath());
|
|
|
+ if (StringUtils.hasText(video.getCoverOssPath())) {
|
|
|
+ videoItem.setCoverUrl(cdnUrl + video.getCoverOssPath());
|
|
|
+ } else {
|
|
|
+ videoItem.setCoverUrl(video.getCoverUrl());
|
|
|
+ }
|
|
|
videoItem.setStatus(video.getStatus());
|
|
|
videoItem.setAuditAccount(video.getAuditAccount());
|
|
|
videoItem.setAuditTimestamp(video.getAuditTimestamp());
|