|
@@ -173,6 +173,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
videoItemVO.setPageUrl(bucketData.getMiniPagePath());
|
|
|
}
|
|
|
}
|
|
|
+ videoItemVO.setShareCover(getShareCover(ContentPlatformPlanService.getVideoCover(video)));
|
|
|
videoVOList.add(videoItemVO);
|
|
|
}
|
|
|
planItemVO.setVideoList(videoVOList);
|
|
@@ -613,11 +614,28 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
planItemVO.setCover(videoItem.getCover());
|
|
|
planItemVO.setVideo(videoItem.getVideo());
|
|
|
}
|
|
|
+ planItemVO.setShareCover(getShareCover(planItemVO.getCover()));
|
|
|
result.add(planItemVO);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ private String getShareCover(String cover) {
|
|
|
+ if (!StringUtils.hasText(cover)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ if (cover.contains("?")) {
|
|
|
+ cover = cover.substring(0, cover.indexOf("?"));
|
|
|
+ }
|
|
|
+ // 裁剪
|
|
|
+ cover = cover + "?x-oss-process=image/resize,m_fill,w_600,h_480,limit_0/format,jpg";
|
|
|
+ // 水印
|
|
|
+ if (cover.contains("yishihui")) {
|
|
|
+ cover = cover + "/watermark,image_eXNoL3BpYy93YXRlcm1hcmtlci9pY29uX3BsYXlfd2hpdGUucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLHdfMTQ0,g_center";
|
|
|
+ }
|
|
|
+ return cover;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<ContentPlatformQwPlanVideo> getQwPlanVideoList(List<Long> planIds) {
|
|
|
ContentPlatformQwPlanVideoExample example = new ContentPlatformQwPlanVideoExample();
|