浏览代码

创建匹配记录

xueyiming 3 月之前
父节点
当前提交
a9a4bf5068

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

@@ -129,7 +129,7 @@ public class ContentServiceImpl implements ContentService {
         if (!CollectionUtils.isEmpty(matchVideos)) {
         if (!CollectionUtils.isEmpty(matchVideos)) {
             return matchVideos.get(0);
             return matchVideos.get(0);
         }
         }
-        MatchVideo newMatchVideo = matchVideos.get(0);
+        MatchVideo newMatchVideo = new MatchVideo();
         newMatchVideo.setTraceId(String.format("search-%s-%s", UUID.randomUUID(), System.currentTimeMillis() / 1000));
         newMatchVideo.setTraceId(String.format("search-%s-%s", UUID.randomUUID(), System.currentTimeMillis() / 1000));
         newMatchVideo.setContentId(publishContent.getSourceId());
         newMatchVideo.setContentId(publishContent.getSourceId());
         newMatchVideo.setFlowPoolLevel(publishContent.getContentPoolType());
         newMatchVideo.setFlowPoolLevel(publishContent.getContentPoolType());