|
@@ -96,10 +96,11 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
if (null != singleAppid && singleAppid == 0) {
|
|
if (null != singleAppid && singleAppid == 0) {
|
|
//多应用
|
|
//多应用
|
|
JSONArray appIdArray = JSONArray.parseArray(strategy.getAppIdArray());
|
|
JSONArray appIdArray = JSONArray.parseArray(strategy.getAppIdArray());
|
|
- String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
|
|
|
|
if (strategy.getMultipleBids() == 0) { // 非多应用多出价
|
|
if (strategy.getMultipleBids() == 0) { // 非多应用多出价
|
|
if (null != appIdArray && !appIdArray.isEmpty()) {
|
|
if (null != appIdArray && !appIdArray.isEmpty()) {
|
|
for (int i = 0; i < appIdArray.size(); i++) {
|
|
for (int i = 0; i < appIdArray.size(); i++) {
|
|
|
|
+ String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
|
|
|
|
+
|
|
AiKuaiShouAppInfo appInfo = appInfoService.getByParams(strategy.getAccountId(), appIdArray.getLong(i));
|
|
AiKuaiShouAppInfo appInfo = appInfoService.getByParams(strategy.getAccountId(), appIdArray.getLong(i));
|
|
if (null == appInfo) {
|
|
if (null == appInfo) {
|
|
log.info("账户:{},appid({}) 数据不存在", accountId, appIdArray.getLong(i));
|
|
log.info("账户:{},appid({}) 数据不存在", accountId, appIdArray.getLong(i));
|
|
@@ -166,6 +167,7 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (strategy.getMultipleBids() == 1) { // 多应用多出价
|
|
} else if (strategy.getMultipleBids() == 1) { // 多应用多出价
|
|
|
|
+ String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
|
|
List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
|
|
List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, null, createType, videoCnt);
|
|
if (Check.isNull(allVideos)) {
|
|
if (Check.isNull(allVideos)) {
|
|
return videoCnt;
|
|
return videoCnt;
|
|
@@ -351,7 +353,6 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
String key = token.getAccountId() + "_ProgramCreative" + "_" + nowDate;
|
|
String key = token.getAccountId() + "_ProgramCreative" + "_" + nowDate;
|
|
JSONArray appIdArray = JSON.parseArray(strategy.getAppIdArray());
|
|
JSONArray appIdArray = JSON.parseArray(strategy.getAppIdArray());
|
|
if (null != singleAppid && singleAppid == 0) {
|
|
if (null != singleAppid && singleAppid == 0) {
|
|
- String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
|
|
|
|
if (strategy.getMultipleBids() == 0) { // 非多应用多出价
|
|
if (strategy.getMultipleBids() == 0) { // 非多应用多出价
|
|
//多应用
|
|
//多应用
|
|
if (null != appIdArray && !appIdArray.isEmpty()) {
|
|
if (null != appIdArray && !appIdArray.isEmpty()) {
|
|
@@ -361,6 +362,8 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
log.info("账户:{},appid({}) 数据不存在", accountId, appIdArray.getLong(i));
|
|
log.info("账户:{},appid({}) 数据不存在", accountId, appIdArray.getLong(i));
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+ String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
|
|
|
|
+
|
|
//判定是否通用监测链接
|
|
//判定是否通用监测链接
|
|
if (null != strategy.getGeneralTrack() && strategy.getGeneralTrack() == 0) {
|
|
if (null != strategy.getGeneralTrack() && strategy.getGeneralTrack() == 0) {
|
|
strategy.setClickTrackUrl(appInfo.getTrackUrl());
|
|
strategy.setClickTrackUrl(appInfo.getTrackUrl());
|
|
@@ -427,6 +430,7 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
if (Check.isNull(allVideos)) {
|
|
if (Check.isNull(allVideos)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ String replaceString = KuaishouCreativeMatTypeEnum.getNameByType(strategy.getUnitType().toString() + createType.toString());
|
|
List<List<KuaiShouVideoGet>> splitVideos = Lists.partition(allVideos, 1);
|
|
List<List<KuaiShouVideoGet>> splitVideos = Lists.partition(allVideos, 1);
|
|
for (int j = 1; j < splitVideos.size() + 1; j++) {
|
|
for (int j = 1; j < splitVideos.size() + 1; j++) {
|
|
List<KuaiShouVideoGet> kuaiShouVideoGets = splitVideos.get(j);
|
|
List<KuaiShouVideoGet> kuaiShouVideoGets = splitVideos.get(j);
|