|
|
@@ -337,7 +337,10 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
// 更新cgi_reply_bucket_data
|
|
|
updateCgiReplyBucketData(account.getGhId());
|
|
|
// 更新gh_detail
|
|
|
- updateGhDetail(account, param.getSelectVideoType(), videoIds);
|
|
|
+ Map<Long, String> videoIdTestIdMap = param.getVideoList().stream()
|
|
|
+ .filter(o -> StringUtils.hasText(o.getMatchExperimentId()))
|
|
|
+ .collect(Collectors.toMap(GzhPlanVideoContentItemParam::getVideoId, GzhPlanVideoContentItemParam::getMatchExperimentId));
|
|
|
+ updateGhDetail(account, param.getSelectVideoType(), videoIds, videoIdTestIdMap);
|
|
|
}
|
|
|
// 调用aigc重新拉取视频
|
|
|
if (param.getType() == ContentPlatformGzhPlanTypeEnum.AUTO_REPLY.getVal()) {
|
|
|
@@ -383,6 +386,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
item.setCustomCoverType(vo.getCustomCoverType());
|
|
|
// 上报多标题封面
|
|
|
item.setPageUrl(setMultiTitleCoverPagePath(item));
|
|
|
+ item.setMatchExperimentId(vo.getMatchExperimentId());
|
|
|
if (StringUtils.hasText(item.getPageUrl())) {
|
|
|
String rootSourceId = MessageUtil.getRootSourceId(item.getPageUrl());
|
|
|
if (StringUtils.hasText(rootSourceId)) {
|
|
|
@@ -402,19 +406,20 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
item.setVideo(vo.getVideo());
|
|
|
if (param.getType() == ContentPlatformGzhPlanTypeEnum.FWH_PUSH.getVal()) {
|
|
|
String response = touLiuHttpClient.sendAdFlowAddRequest(GET_SMALL_PAGE_URL, String.valueOf(vo.getVideoId()), "fwhdyy",
|
|
|
- loginAccount.getChannel(), "自动", "公众号", "文章插小程序", "文字和小程序", account.getGhId());
|
|
|
+ loginAccount.getChannel(), "自动", "公众号", "文章插小程序", "文字和小程序", account.getGhId(), vo.getMatchExperimentId());
|
|
|
JSONObject json = JSONObject.parseObject(response);
|
|
|
SmallPageUrlDetail smallPageUrlDetail = json.getJSONObject("data").toJavaObject(SmallPageUrlDetail.class);
|
|
|
item.setPageUrl(smallPageUrlDetail.getUrl());
|
|
|
} else if (param.getType() == ContentPlatformGzhPlanTypeEnum.GZH_PUSH.getVal()) {
|
|
|
String response = touLiuHttpClient.sendAdFlowAddRequest(GET_SMALL_PAGE_URL, String.valueOf(vo.getVideoId()), "longArticles_outer",
|
|
|
- loginAccount.getChannel(), "自动", "公众号", "文章插小程序", "小程序", account.getGhId());
|
|
|
+ loginAccount.getChannel(), "自动", "公众号", "文章插小程序", "小程序", account.getGhId(), vo.getMatchExperimentId());
|
|
|
JSONObject json = JSONObject.parseObject(response);
|
|
|
SmallPageUrlDetail smallPageUrlDetail = json.getJSONObject("data").toJavaObject(SmallPageUrlDetail.class);
|
|
|
item.setPageUrl(smallPageUrlDetail.getUrl());
|
|
|
}
|
|
|
// 上报多标题封面
|
|
|
item.setPageUrl(setMultiTitleCoverPagePath(item));
|
|
|
+ item.setMatchExperimentId(vo.getMatchExperimentId());
|
|
|
if (StringUtils.hasText(item.getPageUrl())) {
|
|
|
String rootSourceId = MessageUtil.getRootSourceId(item.getPageUrl());
|
|
|
if (StringUtils.hasText(rootSourceId)) {
|
|
|
@@ -550,7 +555,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
return gzhPlanVideoMapper.selectByExample(example);
|
|
|
}
|
|
|
|
|
|
- private void updateGhDetail(ContentPlatformGzhAccount account, Integer selectVideoType, List<Long> videoIds) {
|
|
|
+ private void updateGhDetail(ContentPlatformGzhAccount account, Integer selectVideoType, List<Long> videoIds,
|
|
|
+ Map<Long, String> videoIdTestIdMap) {
|
|
|
GhDetail ghDetail = ghDetailService.getGhDetailByGhIdType(account.getGhId(), GhTypeEnum.THIRD_PARTY_GH.type);
|
|
|
GhDetailVo detailVo = new GhDetailVo();
|
|
|
Integer strategyStatus = selectVideoType == 0 ? StrategyStatusEnum.DEFAULT.status : StrategyStatusEnum.STRATEGY.status;
|
|
|
@@ -565,7 +571,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
detailVo.setStrategyStatus(strategyStatus);
|
|
|
detailVo.setVideoIds(videoIds);
|
|
|
detailVo.setAutoreplySendMinigramNum(videoIds.size());
|
|
|
- ghDetailService.updateDetail(detailVo);
|
|
|
+ ghDetailService.updateDetail(detailVo, videoIdTestIdMap);
|
|
|
} else {
|
|
|
detailVo.setAccountId(account.getGhId());
|
|
|
detailVo.setAccountName(account.getName());
|
|
|
@@ -575,7 +581,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
detailVo.setStrategyStatus(strategyStatus);
|
|
|
detailVo.setVideoIds(videoIds);
|
|
|
detailVo.setAutoreplySendMinigramNum(videoIds.size());
|
|
|
- ghDetailService.addGhDetail(detailVo);
|
|
|
+ ghDetailService.addGhDetail(detailVo, videoIdTestIdMap);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1020,7 +1026,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
String carrierId = StringUtils.hasText(param.getSubChannel()) ? param.getSubChannel() : "wxbdd2a2e93d9a6e25";
|
|
|
String pageUrl = messageAttachmentService.getPage(loginUser.getChannel(), carrierId,
|
|
|
"dyyqw", "企微", QwPlanTypeEnum.from(param.getType()).getDescription(),
|
|
|
- "位置1", videoParam.getVideoId());
|
|
|
+ "位置1", videoParam.getVideoId(), videoParam.getMatchExperimentId());
|
|
|
//pageUrl = videoMultiService.setVideoMultiTitleCoverPagePath(videoParam.getVideoId(), pageUrl,
|
|
|
// videoParam.getTitle(), videoParam.getCover());
|
|
|
String rootSourceId = MessageUtil.getRootSourceId(pageUrl);
|
|
|
@@ -1044,6 +1050,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
item.setTitle(videoParam.getTitle());
|
|
|
item.setCover(videoParam.getCover());
|
|
|
item.setVideo(videoParam.getVideo());
|
|
|
+ item.setMatchExperimentId(videoParam.getMatchExperimentId());
|
|
|
item.setCreateAccountId(loginAccountId);
|
|
|
item.setCreateTimestamp(System.currentTimeMillis());
|
|
|
qwPlanVideoMapper.insertSelective(item);
|
|
|
@@ -1293,6 +1300,25 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
item.setCover(video.getCover());
|
|
|
item.setVideo(video.getVideo());
|
|
|
item.setScore(video.getScore());
|
|
|
+ item.setCrowdSegment(video.getCrowdSegment());
|
|
|
+ item.setDemandId(video.getDemandId());
|
|
|
+ item.setCrowdPackage(video.getCrowdPackage());
|
|
|
+ item.setConversionTarget(video.getConversionTarget());
|
|
|
+ item.setPartner(video.getPartner());
|
|
|
+ item.setAccount(video.getAccount());
|
|
|
+ item.setSceneValue(video.getSceneValue());
|
|
|
+ item.setDemandStrategy(video.getDemandStrategy());
|
|
|
+ item.setDriveDimensionTime(video.getDriveDimensionTime());
|
|
|
+ item.setDimension(video.getDimension());
|
|
|
+ item.setDemandFilterSortStrategy(video.getDemandFilterSortStrategy());
|
|
|
+ item.setDemandType(video.getDemandType());
|
|
|
+ item.setDemandContentId(video.getDemandContentId());
|
|
|
+ item.setDemandContentTitle(video.getDemandContentTitle());
|
|
|
+ item.setDemandContentTopic(video.getDemandContentTopic());
|
|
|
+ item.setPointType(video.getPointType());
|
|
|
+ item.setStandardElement(video.getStandardElement());
|
|
|
+ item.setCategoryName(video.getCategoryName());
|
|
|
+ item.setMatchExperimentId(video.getMatchExperimentId());
|
|
|
result.add(item);
|
|
|
}
|
|
|
return result;
|