|
@@ -288,7 +288,6 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
-
|
|
|
//单一应用
|
|
|
String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
|
|
|
Long appId = null;
|
|
@@ -329,10 +328,11 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
}
|
|
|
newCampaignId = getCampaignId(strategy, token, replaceString, "TODAY", createType, appId, strategyUuid, channel);
|
|
|
if (null == newCampaignId) {
|
|
|
- channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ if (!Check.isNull(channel)) {
|
|
|
+ channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ }
|
|
|
return videoCnt;
|
|
|
}
|
|
|
-
|
|
|
if (useChannel == 1) {
|
|
|
strategy.setMaterialKeyword(null);
|
|
|
if (!"group".equals(level)) {
|
|
@@ -341,7 +341,9 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
if ("account".equals(level)) {
|
|
|
usedchannel = channel;
|
|
|
} else {
|
|
|
- channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ if (!Check.isNull(channel)) {
|
|
|
+ channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ }
|
|
|
return videoCnt;
|
|
|
}
|
|
|
}
|
|
@@ -695,7 +697,9 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
}
|
|
|
newCampaignId = getCampaignId(strategy, token, replaceString, "TODAY", createType, appId, strategyUuid, channel);
|
|
|
if (null == newCampaignId) {
|
|
|
- channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ if (!Check.isNull(channel)) {
|
|
|
+ channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
if (useChannel == 1) {
|
|
@@ -706,7 +710,9 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
if ("account".equals(level)) {
|
|
|
usedchannel = channel;
|
|
|
} else {
|
|
|
- channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ if (!Check.isNull(channel)) {
|
|
|
+ channelService.callBackUpdateChannelRel(level, channel.getChannelCode(), accountId, newCampaignId, null, 0);
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
}
|