|
|
@@ -196,17 +196,17 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
private String buildCustomPageUrl(GzhPlanVideoContentItemVO videoItemVO, ContentPlatformGzhPlanVideo video) {
|
|
|
String pageUrl = videoItemVO.getPageUrl();
|
|
|
try {
|
|
|
- if (StringUtils.hasText(videoItemVO.getCustomTitle()) && !pageUrl.contains("shareTitle")) {
|
|
|
+ if (StringUtils.hasText(videoItemVO.getCustomTitle()) && !pageUrl.contains("shareTitleId")) {
|
|
|
if (Objects.nonNull(video.getCustomTitleId())) {
|
|
|
pageUrl += URLEncoder.encode("&shareTitleId=" + video.getCustomTitleId(), "UTF-8");
|
|
|
}
|
|
|
- pageUrl += URLEncoder.encode("&shareTitle=" + video.getCustomTitle(), "UTF-8");
|
|
|
+ //pageUrl += URLEncoder.encode("&shareTitle=" + video.getCustomTitle(), "UTF-8");
|
|
|
}
|
|
|
- if (StringUtils.hasText(videoItemVO.getCustomCover()) && !pageUrl.contains("shareImageUrl")) {
|
|
|
+ if (StringUtils.hasText(videoItemVO.getCustomCover()) && !pageUrl.contains("shareImageId")) {
|
|
|
if (Objects.nonNull(video.getCustomCoverId())) {
|
|
|
pageUrl += URLEncoder.encode("&shareImageId=" + video.getCustomCoverId(), "UTF-8");
|
|
|
}
|
|
|
- pageUrl += URLEncoder.encode("&shareImageUrl=" + URLEncoder.encode(video.getCustomCover(), "UTF-8"), "UTF-8");
|
|
|
+ // pageUrl += URLEncoder.encode("&shareImageUrl=" + URLEncoder.encode(video.getCustomCover(), "UTF-8"), "UTF-8");
|
|
|
}
|
|
|
return pageUrl;
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
@@ -419,28 +419,28 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
String title = item.getTitle();
|
|
|
String cover = item.getCover();
|
|
|
try {
|
|
|
- if (!pageUrl.contains("shareTitle")) {
|
|
|
- if (StringUtils.hasText(item.getCustomTitle())) {
|
|
|
- pageUrl += URLEncoder.encode("&shareTitle=" + item.getCustomTitle(), "UTF-8");
|
|
|
- title = item.getCustomTitle();
|
|
|
- } else {
|
|
|
- pageUrl += URLEncoder.encode("&shareTitle=" + item.getTitle(), "UTF-8");
|
|
|
- }
|
|
|
- }
|
|
|
+ //if (!pageUrl.contains("shareTitle")) {
|
|
|
+ // if (StringUtils.hasText(item.getCustomTitle())) {
|
|
|
+ // pageUrl += URLEncoder.encode("&shareTitle=" + item.getCustomTitle(), "UTF-8");
|
|
|
+ // title = item.getCustomTitle();
|
|
|
+ // } else {
|
|
|
+ // pageUrl += URLEncoder.encode("&shareTitle=" + item.getTitle(), "UTF-8");
|
|
|
+ // }
|
|
|
+ //}
|
|
|
if (Objects.nonNull(item.getCustomTitleId()) && !pageUrl.contains("shareTitleId")) {
|
|
|
pageUrl += URLEncoder.encode("&shareTitleId=" + item.getCustomTitleId(), "UTF-8");
|
|
|
}
|
|
|
if (Objects.nonNull(item.getCustomCoverId()) && !pageUrl.contains("shareImageId")) {
|
|
|
pageUrl += URLEncoder.encode("&shareImageId=" + item.getCustomCoverId(), "UTF-8");
|
|
|
}
|
|
|
- if (!pageUrl.contains("shareImageUrl")) {
|
|
|
- if (StringUtils.hasText(item.getCustomCover())) {
|
|
|
- pageUrl += URLEncoder.encode("&shareImageUrl=" + URLEncoder.encode(item.getCustomCover(), "UTF-8"), "UTF-8");
|
|
|
- cover = item.getCustomCover();
|
|
|
- } else {
|
|
|
- pageUrl += URLEncoder.encode("&shareImageUrl=" + URLEncoder.encode(item.getCover(), "UTF-8"), "UTF-8");
|
|
|
- }
|
|
|
- }
|
|
|
+ //if (!pageUrl.contains("shareImageUrl")) {
|
|
|
+ // if (StringUtils.hasText(item.getCustomCover())) {
|
|
|
+ // pageUrl += URLEncoder.encode("&shareImageUrl=" + URLEncoder.encode(item.getCustomCover(), "UTF-8"), "UTF-8");
|
|
|
+ // cover = item.getCustomCover();
|
|
|
+ // } else {
|
|
|
+ // pageUrl += URLEncoder.encode("&shareImageUrl=" + URLEncoder.encode(item.getCover(), "UTF-8"), "UTF-8");
|
|
|
+ // }
|
|
|
+ //}
|
|
|
} catch (Exception e) {
|
|
|
log.error("设置视频多标题封面失败,videoId={}", item.getVideoId(), e);
|
|
|
}
|