...
|
...
|
@@ -1873,12 +1873,12 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
|
|
|
//笔记封面图 长文章
|
|
|
//如果没有单独的给笔记设置封面图,取图片列表的第一张作为封面图
|
|
|
String coverImage = imgMap.get(article.getId()).get(0);
|
|
|
rspBo.setCoverImg(coverImage);
|
|
|
|
|
|
//短视频封面图
|
|
|
if(sort == 4){
|
|
|
rspBo.setCoverImg(videoMap.get(article.getId()) == null ? "" : videoMap.get(article.getId()).getString("coverUrl"));
|
|
|
}else {
|
|
|
String coverImage = imgMap.get(article.getId()).get(0);
|
|
|
rspBo.setCoverImg(coverImage);
|
|
|
}
|
|
|
rspBo.setCoverImgSquare(coverImageMap.get(article.getId()));
|
|
|
rspBo.setCoverImgFlat(coverImage2Map.get(article.getId()));
|
...
|
...
|
|