|
@@ -157,9 +157,11 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
videoItemVO.setCustomCover(video.getCustomCover());
|
|
|
videoItemVO.setCustomCoverType(video.getCustomCoverType());
|
|
|
videoItemVO.setVideo(video.getVideo());
|
|
|
- CgiReplyBucketData bucketData = bucketDataMapByGhId.get(video.getVideoId());
|
|
|
- if (Objects.nonNull(bucketData)) {
|
|
|
- videoItemVO.setPageUrl(bucketData.getMiniPagePath());
|
|
|
+ if (Objects.nonNull(bucketDataMapByGhId)) {
|
|
|
+ CgiReplyBucketData bucketData = bucketDataMapByGhId.get(video.getVideoId());
|
|
|
+ if (Objects.nonNull(bucketData)) {
|
|
|
+ videoItemVO.setPageUrl(bucketData.getMiniPagePath());
|
|
|
+ }
|
|
|
}
|
|
|
videoVOList.add(videoItemVO);
|
|
|
}
|
|
@@ -616,9 +618,9 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
continue;
|
|
|
}
|
|
|
gzhPlan.setAccountId(gzhAccount.getId());
|
|
|
- gzhPlan.setType(0);
|
|
|
+ gzhPlan.setType(ContentPlatformGzhPlanTypeEnum.AUTO_REPLY.getVal());
|
|
|
gzhPlan.setScene(0);
|
|
|
- gzhPlan.setSelectVideoType(1);
|
|
|
+ gzhPlan.setSelectVideoType(ghDetail.getStrategyStatus());
|
|
|
gzhPlan.setPublishStage(PublishStageEnum.USER.getVal());
|
|
|
if (StringUtils.hasText(gzhAccount.getExternalId())) {
|
|
|
aigcApiService.closeAccountMessagePublishPlan(gzhAccount.getExternalId());
|
|
@@ -653,6 +655,21 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void fwhPlanImport(List<String> channels) {
|
|
|
+ List<ContentPlatformAccount> accountList = accountService.getAccountListByChannels(channels);
|
|
|
+ for (ContentPlatformAccount account : accountList) {
|
|
|
+ Long now = System.currentTimeMillis();
|
|
|
+ List<ContentPlatformGzhAccount> gzhAccountList = cooperateAccountService.getAccountListByCreatorId(account.getId());
|
|
|
+ for (ContentPlatformGzhAccount gzhAccount : gzhAccountList) {
|
|
|
+ if (!StringUtils.hasText(gzhAccount.getExternalId())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void qwPlanImport(List<String> channels) {
|
|
|
List<AdPutFlowRecordTencent> list = new ArrayList<>();
|