|
@@ -243,9 +243,9 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
}
|
|
|
dpIndex = adDplinkInfo.getDpLinkIndex();
|
|
|
// 超出下标范围
|
|
|
- // 已创建计划 > 账户配置结束下标 || 已创建计划 > 结束下标 || 已创建计划 > 账户配置最大组个数 * 组下计划个数
|
|
|
- if( dpIndex < strategy.getDpLinkStartIndex() || dpIndex > strategy.getDpLinkEndIndex() || dpIndex > strategy.getCampaignCnt()*strategy.getCampaignAdCnt()){
|
|
|
- log.info("此账户策略创建结束===已创建的计划超过了账户配置中dp链接结束下标===>账户id:{};策略id:{}", token.getAccountId(),strategy.getId());
|
|
|
+ // 已使用dp链接 < 账户配置结束下标 || 已使用dp链接 > 结束下标
|
|
|
+ if( dpIndex < strategy.getDpLinkStartIndex() || dpIndex > strategy.getDpLinkEndIndex()){
|
|
|
+ log.info("此账户策略创建结束===已创建dp链接超过了限制===>账户id:{};策略id:{}", token.getAccountId(),strategy.getId());
|
|
|
return 0L;
|
|
|
}
|
|
|
//组名称
|
|
@@ -1091,7 +1091,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if(result.contains("{{序号}}")){
|
|
|
//查询同素材类型当天已有计划数量
|
|
|
int i = adDplinkInfoService.getDpLinkInfoCount(strategy.getAccountId(),strategy.getCreativeImageMode());
|
|
|
- Long num = GetCampaignNum.getCampaignNameNum(strategy.getCampaignCnt(),strategy.getCampaignAdCnt(), i == 0 ? i+1 : i);
|
|
|
+ Long num = GetCampaignNum.getCampaignNameNum(strategy.getCampaignCnt(),strategy.getCampaignAdCnt(), i+1);
|
|
|
result = result.replace("{{序号}}",String.valueOf(num));
|
|
|
}
|
|
|
|
|
@@ -1158,7 +1158,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
*/
|
|
|
private List<ByteDanceVideoInfo> getImageInfoByCreateType(Long projectId,AiBytedanceAdvertiserStrategy strategy, String startTime, String endTime, Integer createType, Long videoCnt) {
|
|
|
//根据 imageMode 获取素材类型
|
|
|
- //1-大图横图; 2-大图竖图
|
|
|
+ //1-大图横图; 2-大图竖图 3-开屏
|
|
|
String imageMode = BytedanceCreativeMatTypeEnum.getNameByType(strategy.getCreativeImageMode());
|
|
|
//1:上新素材 2:跑量素材 3:遗漏素材 4:打捞素材
|
|
|
if(createType == 1||createType == 3){
|
|
@@ -1561,7 +1561,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
log.info("{}当前时间内需要创建计划总数:{}", strategy.getAccountId(), unitNum);
|
|
|
//查询当前账户创建自定义类型计划数量
|
|
|
int unitCreateCnt = planService.queryToDayBuiltCount(strategy.getAccountId());
|
|
|
- log.info("{}截止目前创建组总数:{}", strategy.getAccountId(), unitCreateCnt);
|
|
|
+ log.info("{}截止目前创建计划总数:{}", strategy.getAccountId(), unitCreateCnt);
|
|
|
long remindCnt = unitNum - unitCreateCnt;
|
|
|
if (remindCnt >= 1) {
|
|
|
log.info("{}计划创建不足,剩余需要创建个数{},使用上新素材创建", strategy.getAccountId(), remindCnt);
|