xueyiming hace 1 mes
padre
commit
19941c82a4

+ 2 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/MatchVideoServiceImpl.java

@@ -230,6 +230,7 @@ public class MatchVideoServiceImpl {
     }
 
     public void addCrawlerVideo(MatchVideo matchVideo) {
+        //数据准备
         SingleVideoSourceExample example = new SingleVideoSourceExample();
         example.createCriteria().andContentTraceIdEqualTo(matchVideo.getContentTraceId());
         List<SingleVideoSource> singleVideoSources = singleVideoSourceMapper.selectByExample(example);
@@ -242,11 +243,11 @@ public class MatchVideoServiceImpl {
         if (CollectionUtils.isEmpty(videoContentUnderstandings)) {
             return;
         }
+        SingleVideoSource singleVideoSource = singleVideoSources.get(0);
         VideoContentUnderstanding videoContentUnderstanding = videoContentUnderstandings.get(0);
 
 
         //视频抓取表插入
-        SingleVideoSource singleVideoSource = singleVideoSources.get(0);
         CrawlerVideo crawlerVideo = new CrawlerVideo();
         crawlerVideo.setDownloadStatus(2);
         crawlerVideo.setVideoTitle(singleVideoSource.getArticleTitle());