Browse Source

下掉新封面实验

xueyiming 1 week ago
parent
commit
7edf610af8

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

@@ -196,19 +196,19 @@ public class CardServiceImpl implements CardService {
             for (int index = 0; index < videoDetails.size(); index++) {
             for (int index = 0; index < videoDetails.size(); index++) {
                 VideoDetail videoDetail = videoDetails.get(index);
                 VideoDetail videoDetail = videoDetails.get(index);
                 PublishMiniprogram card = generateSingleCard(index + 1, miniId, videoDetail, planAccount, publishContent);
                 PublishMiniprogram card = generateSingleCard(index + 1, miniId, videoDetail, planAccount, publishContent);
-                //1号位置和2号位置视频  查询2号视频是否有新封面
-                if (index == 1 && Objects.equals(videoDetail.getCrawlerVideoId(), videoDetails.get(0).getCrawlerVideoId())) {
-                    NewVideoCoverExample example = new NewVideoCoverExample();
-                    example.createCriteria().andCrawlerVideoIdEqualTo(videoDetail.getCrawlerVideoId()).andGetCoverStatusEqualTo(2);
-                    List<NewVideoCover> newVideoCovers = newVideoCoverMapper.selectByExample(example);
-                    // 查询是否存在新封面
-                    if (!CollectionUtils.isEmpty(newVideoCovers)) {
-                        NewVideoCover newVideoCover = newVideoCovers.get(0);
-                        String cover = " https://rescdn.yishihui.com/" + newVideoCover.getCoverOssPath();
-                        card.setVideoCover(cover);
-                        card.setNewVideoCoverId(newVideoCover.getId());
-                    }
-                }
+//                //1号位置和2号位置视频  查询2号视频是否有新封面
+//                if (index == 1 && Objects.equals(videoDetail.getCrawlerVideoId(), videoDetails.get(0).getCrawlerVideoId())) {
+//                    NewVideoCoverExample example = new NewVideoCoverExample();
+//                    example.createCriteria().andCrawlerVideoIdEqualTo(videoDetail.getCrawlerVideoId()).andGetCoverStatusEqualTo(2);
+//                    List<NewVideoCover> newVideoCovers = newVideoCoverMapper.selectByExample(example);
+//                    // 查询是否存在新封面
+//                    if (!CollectionUtils.isEmpty(newVideoCovers)) {
+//                        NewVideoCover newVideoCover = newVideoCovers.get(0);
+//                        String cover = " https://rescdn.yishihui.com/" + newVideoCover.getCoverOssPath();
+//                        card.setVideoCover(cover);
+//                        card.setNewVideoCoverId(newVideoCover.getId());
+//                    }
+//                }
                 if (card != null) {
                 if (card != null) {
                     String videoCover = card.getVideoCover();
                     String videoCover = card.getVideoCover();
                     String wxUrl = aigcService.pushCover(videoCover, card.getPublishContentId());
                     String wxUrl = aigcService.pushCover(videoCover, card.getPublishContentId());