|  | @@ -6,6 +6,8 @@ import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.common.enums.ReplyStrategyServiceEnum;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.component.TouLiuHttpClient;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.dao.mapper.AlgGhAutoreplyVideoRankDataMapper;
 | 
	
		
			
				|  |  | +import com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhPlanVideo;
 | 
	
		
			
				|  |  | +import com.tzld.piaoquan.api.service.contentplatform.ContentPlatformPlanService;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.growth.common.common.enums.StrategyStatusEnum;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.growth.common.dao.mapper.CgiReplyBucketDataMapper;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.growth.common.dao.mapper.GhDetailMapper;
 | 
	
	
		
			
				|  | @@ -67,6 +69,8 @@ public class BuckStrategyV1 implements ReplyStrategyService {
 | 
	
		
			
				|  |  |      private TouLiuHttpClient touLiuHttpClient;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private GhDetailMapper ghDetailMapper;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private ContentPlatformPlanService contentPlatformPlanService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public ReplyBucketData getResult(BucketDataParam bucketDataParam) {
 | 
	
	
		
			
				|  | @@ -367,17 +371,29 @@ public class BuckStrategyV1 implements ReplyStrategyService {
 | 
	
		
			
				|  |  |              int sort = i + 1;
 | 
	
		
			
				|  |  |              Long videoId = bucketDataParam.getVideos().get(i);
 | 
	
		
			
				|  |  |              Map<Long, VideoDetail> videoDetailMap = touLiuHttpClient.getVideoDetailRequest(bucketDataParam.getVideos());
 | 
	
		
			
				|  |  | +            List<ContentPlatformGzhPlanVideo> gzhPlanVideoList = contentPlatformPlanService.getGzhPlanVideoListByCooperateAccountId(bucketDataParam.getGhId());
 | 
	
		
			
				|  |  | +            Map<Long, ContentPlatformGzhPlanVideo> gzhPlanVideoMap = gzhPlanVideoList.stream().collect(Collectors.toMap(ContentPlatformGzhPlanVideo::getVideoId, x -> x));
 | 
	
		
			
				|  |  |              CgiReplyBucketData cgiReplyBucketData = new CgiReplyBucketData();
 | 
	
		
			
				|  |  |              cgiReplyBucketData.setStrategy(key);
 | 
	
		
			
				|  |  |              cgiReplyBucketData.setSort(sort);
 | 
	
		
			
				|  |  |              cgiReplyBucketData.setGhId(bucketDataParam.getGhId());
 | 
	
		
			
				|  |  |              cgiReplyBucketData.setMsgType(1);
 | 
	
		
			
				|  |  |              VideoDetail videoDetail = videoDetailMap.get(videoId);
 | 
	
		
			
				|  |  | -            if (videoDetail != null && StringUtils.isNotEmpty(videoDetail.getCover())) {
 | 
	
		
			
				|  |  | -                cgiReplyBucketData.setCoverUrl(videoDetail.getCover());
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (videoDetail != null && StringUtils.isNotEmpty(videoDetail.getTitle())) {
 | 
	
		
			
				|  |  | -                cgiReplyBucketData.setTitle(videoDetail.getTitle());
 | 
	
		
			
				|  |  | +            ContentPlatformGzhPlanVideo gzhPlanVideo = gzhPlanVideoMap.get(videoId);
 | 
	
		
			
				|  |  | +            // 内容合作平台视频标题和封面
 | 
	
		
			
				|  |  | +            if (Objects.nonNull(gzhPlanVideo)) {
 | 
	
		
			
				|  |  | +                cgiReplyBucketData.setTitle(gzhPlanVideo.getTitle());
 | 
	
		
			
				|  |  | +                if (StringUtils.isNotEmpty(gzhPlanVideo.getCover())) {
 | 
	
		
			
				|  |  | +                    String coverSuffix = videoDetail.getCover().substring(videoDetail.getCover().indexOf("/watermark"));
 | 
	
		
			
				|  |  | +                    cgiReplyBucketData.setCoverUrl(gzhPlanVideo.getCover() + coverSuffix);
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                if (videoDetail != null && StringUtils.isNotEmpty(videoDetail.getCover())) {
 | 
	
		
			
				|  |  | +                    cgiReplyBucketData.setCoverUrl(videoDetail.getCover());
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                if (videoDetail != null && StringUtils.isNotEmpty(videoDetail.getTitle())) {
 | 
	
		
			
				|  |  | +                    cgiReplyBucketData.setTitle(videoDetail.getTitle());
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              cgiReplyBucketData.setMiniAppId(SMALL_APP_Id);
 | 
	
		
			
				|  |  |              cgiReplyBucketData.setMiniVideoId(videoId);
 |