|
@@ -776,11 +776,9 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
String date = DateUtils.formatDate(new Date());
|
|
|
//查询当前账户创建自定义类型组数量
|
|
|
Integer unitCreateCnt = queryUnitCnt(strategy.getAccountId() + date + "_old_custom_cnt");
|
|
|
- Long unitNum = 0L;
|
|
|
+ Long unitNum = customUnitCnt;
|
|
|
if (!Check.isNull(unitCreateCnt)) {
|
|
|
unitNum = customUnitCnt - unitCreateCnt;
|
|
|
- }else {
|
|
|
- unitNum = customUnitCnt;
|
|
|
}
|
|
|
unitNum = unitNum * hour / 20;
|
|
|
log.info("{}当前时间内需要创建组总数:{}", strategy.getAccountId(), unitNum);
|