Browse Source

渠道号。。。修改bug

zhaoxian 3 years ago
parent
commit
f65e52c893

+ 6 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouCreateCreativeServiceImpl.java

@@ -345,6 +345,9 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
                     strategy.setMaterialKeyword(items.get(0).getKeyword());
                     strategy.setMaterialKeyword(items.get(0).getKeyword());
                 }
                 }
             }
             }
+            if ("group".equals(level)) {
+                strategy.setMaterialKeyword(null);
+            }
             List<KuaiShouVideoGet> newVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
             List<KuaiShouVideoGet> newVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
             if (null == newVideos || newVideos.isEmpty()) {
             if (null == newVideos || newVideos.isEmpty()) {
                 log.info("账户:{},{} 到 {} 未获取到相应素材({})", accountId, startTime, endTime, replaceString);
                 log.info("账户:{},{} 到 {} 未获取到相应素材({})", accountId, startTime, endTime, replaceString);
@@ -698,6 +701,9 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
                     strategy.setMaterialKeyword(items.get(0).getKeyword());
                     strategy.setMaterialKeyword(items.get(0).getKeyword());
                 }
                 }
             }
             }
+            if ("group".equals(level)) {
+                strategy.setMaterialKeyword(null);
+            }
             List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
             List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
             if (null == allVideos) {
             if (null == allVideos) {
                 return;
                 return;