| 
					
				 | 
			
			
				@@ -71,19 +71,23 @@ public class ContentServiceImpl implements ContentService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return matchVideos.get(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void updateMatchContent(PublishContent publishContent, PlanAccount planAccount, List<PublishMiniprogramBo> publishMiniprogramBoList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public MatchVideo getMatchVideo(PublishContent publishContent, PlanAccount planAccount) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MatchVideoExample matchVideoExample = new MatchVideoExample(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        matchVideoExample.createCriteria().andGhIdEqualTo(planAccount.getGhId()).andContentIdEqualTo(publishContent.getSourceId()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .andPublishFlagIn(Arrays.asList(1, 2)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        matchVideoExample.setOrderByClause("publish_flag desc"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<MatchVideo> matchVideos = matchVideoMapper.selectByExample(matchVideoExample); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (CollectionUtils.isEmpty(matchVideos)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return matchVideos.get(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void updateMatchContent(PublishContent publishContent, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                   List<PublishMiniprogramBo> publishMiniprogramBoList, MatchVideo matchVideo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            MatchVideoExample matchVideoExample = new MatchVideoExample(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            matchVideoExample.createCriteria().andGhIdEqualTo(planAccount.getGhId()).andContentIdEqualTo(publishContent.getSourceId()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    .andPublishFlagIn(Arrays.asList(1, 2)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            matchVideoExample.setOrderByClause("publish_flag desc"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            List<MatchVideo> matchVideos = matchVideoMapper.selectByExample(matchVideoExample); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (CollectionUtils.isEmpty(matchVideos)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             JSONArray jsonArray = getResponse(publishMiniprogramBoList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            String traceId = matchVideos.get(0).getTraceId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            MatchVideo matchVideo = matchVideos.get(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String traceId = matchVideo.getTraceId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             MatchVideo updateMatchVideo = new MatchVideo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             updateMatchVideo.setId(matchVideo.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             updateMatchVideo.setContentStatus(4); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -190,14 +194,14 @@ public class ContentServiceImpl implements ContentService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return data.getRank_list(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public List<VideoDetail> getPublishVideoDetail(PublishContent publishContent, PlanAccount planAccount) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public List<VideoDetail> getPublishVideoDetail(PublishContent publishContent, PlanAccount planAccount, MatchVideo matchVideo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<CrawlerVideo> contentMiniVideos = getContentMiniVideo(publishContent, planAccount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         log.info("getPublishVideoDetail contentMiniVideos={}", contentMiniVideos); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (contentMiniVideos.size() < 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             publicContentService.delPublishContent(publishContent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        List<VideoDetail> videoDetails = publishVideo(contentMiniVideos); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<VideoDetail> videoDetails = publishVideo(contentMiniVideos, matchVideo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         log.info("getPublishVideoDetail videoDetails={}", videoDetails); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (videoDetails.size() < 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             publicContentService.delPublishContent(publishContent); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -206,7 +210,7 @@ public class ContentServiceImpl implements ContentService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return videoDetails; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public List<VideoDetail> publishVideo(List<CrawlerVideo> contentMiniVideos) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public List<VideoDetail> publishVideo(List<CrawlerVideo> contentMiniVideos, MatchVideo matchVideo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<VideoDetail> videoDetails = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //发布小程序 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (CrawlerVideo crawlerVideo : contentMiniVideos) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -214,7 +218,7 @@ public class ContentServiceImpl implements ContentService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String videoOssPath = crawlerVideo.getVideoOssPath(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String platform = crawlerVideo.getPlatform(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String userId = crawlerVideo.getUserId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            String traceId = crawlerVideo.getTraceId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String traceId = matchVideo.getTraceId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String kimiTitle; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             LongArticlesText kimiText = kimiService.getKimiText(crawlerVideo.getContentId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (kimiText != null && StringUtils.isNotEmpty(kimiText.getKimiTitle())) { 
			 |