瀏覽代碼

渠道号。。。修改查询渠道逻辑

zhaoxian 3 年之前
父節點
當前提交
e94660aa33

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

@@ -332,13 +332,13 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
             }
             if (useChannel == 1) {
                 channel = channelService.queryUsedChannel(accountId, newCampaignId, level);
-            }
-            if (Check.isNull(channel)) {
-                return videoCnt;
-            }
-            List<KuaishouChannelItems> items = channel.getItems();
-            if (!Check.isNull(items) && !items.isEmpty()) {
-                strategy.setMaterialKeyword(items.get(0).getKeyword());
+                if (Check.isNull(channel)) {
+                    return videoCnt;
+                }
+                List<KuaishouChannelItems> items = channel.getItems();
+                if (!Check.isNull(items) && !items.isEmpty()) {
+                    strategy.setMaterialKeyword(items.get(0).getKeyword());
+                }
             }
             List<KuaiShouVideoGet> newVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
             if (null == newVideos || newVideos.isEmpty()) {
@@ -680,13 +680,13 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
             }
             if (useChannel == 1) {
                 channel = channelService.queryUsedChannel(accountId, newCampaignId, level);
-            }
-            if (Check.isNull(channel)) {
-                return;
-            }
-            List<KuaishouChannelItems> items = channel.getItems();
-            if (!Check.isNull(items) && !items.isEmpty()) {
-                strategy.setMaterialKeyword(items.get(0).getKeyword());
+                if (Check.isNull(channel)) {
+                    return;
+                }
+                List<KuaishouChannelItems> items = channel.getItems();
+                if (!Check.isNull(items) && !items.isEmpty()) {
+                    strategy.setMaterialKeyword(items.get(0).getKeyword());
+                }
             }
             List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
             if (null == allVideos) {