|
@@ -312,24 +312,24 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
@Override
|
|
|
public void customCreativeSupplement(AiKuaishouAdvertiserStrategy strategy,Integer hour) throws ParseException {
|
|
|
Long unitNum = strategy.getCustomUnitCnt()*hour/20;
|
|
|
- log.info("当前时间内需要创建组总数:{}",unitNum);
|
|
|
+ log.info("{}当前时间内需要创建组总数:{}",strategy.getAccountId(),unitNum);
|
|
|
//查询当前账户创建自定义类型组数量
|
|
|
int unitCreateCnt = groupService.queryToDayBuiltCount(strategy.getAccountId());
|
|
|
- log.info("截止目前创建组总数:{}",unitCreateCnt);
|
|
|
+ log.info("{}截止目前创建组总数:{}",strategy.getAccountId(),unitCreateCnt);
|
|
|
long remindCnt = unitNum-unitCreateCnt;
|
|
|
if(remindCnt>=1){
|
|
|
- log.info("组创建不足,剩余需要创建个数{},使用历史遗漏素材创建",remindCnt);
|
|
|
+ log.info("{}组创建不足,剩余需要创建个数{},使用历史遗漏素材创建",strategy.getAccountId(),remindCnt);
|
|
|
//优先创建历史遗漏素材
|
|
|
remindCnt = this.autoCreateCreative(strategy,3,remindCnt);
|
|
|
}
|
|
|
if(remindCnt>=1){
|
|
|
- log.info("组创建不足,剩余需要创建个数{},使用高质量素材创建",remindCnt);
|
|
|
+ log.info("{}组创建不足,剩余需要创建个数{},使用高质量素材创建",strategy.getAccountId(),remindCnt);
|
|
|
//高质量素材
|
|
|
remindCnt = this.autoCreateCreative(strategy,2,remindCnt);
|
|
|
}
|
|
|
if(remindCnt>=1){
|
|
|
//历史打捞素材
|
|
|
- log.info("组创建不足,剩余需要创建个数{},使用历史打捞素材创建",remindCnt);
|
|
|
+ log.info("{}组创建不足,剩余需要创建个数{},使用历史打捞素材创建",strategy.getAccountId(),remindCnt);
|
|
|
this.autoCreateCreative(strategy,4,remindCnt);
|
|
|
}
|
|
|
}
|
|
@@ -337,13 +337,13 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
@Override
|
|
|
public void customCreativeLimit(AiKuaishouAdvertiserStrategy strategy) {
|
|
|
Long unitNum = strategy.getCustomUnitCnt();
|
|
|
- log.info("当天可创建组总数:{}",unitNum);
|
|
|
+ log.info("{}当天可创建组总数:{}",strategy.getAccountId(),unitNum);
|
|
|
//查询当前账户创建自定义类型组数量
|
|
|
int unitCreateCnt = groupService.queryToDayBuiltCount(strategy.getAccountId());
|
|
|
- log.info("截止目前创建组总数:{}",unitCreateCnt);
|
|
|
+ log.info("{}截止目前创建组总数:{}",strategy.getAccountId(),unitCreateCnt);
|
|
|
long remindCnt = unitNum-unitCreateCnt;
|
|
|
if(remindCnt>=1){
|
|
|
- log.info("组创建不足,剩余需要创建个数{},开始上新素材创建",remindCnt);
|
|
|
+ log.info("{}组创建不足,剩余需要创建个数{},开始上新素材创建",strategy.getAccountId(),remindCnt);
|
|
|
this.autoCreateCreative(strategy,1,remindCnt);
|
|
|
}
|
|
|
}
|