|
@@ -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) {
|