zhaoxian пре 3 година
родитељ
комит
faafa13055

+ 8 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouAccountAutoDoServiceImpl.java

@@ -284,6 +284,8 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
                 if (null == newCampaignId) {
                     return videoCnt;
                 }
+                //赋值本次执行可创建数
+                videoCnt = strategy.getToBeBuiltCnt();
                 log.info("---------获取计划成功,计划id:{}", newCampaignId);
                 // 1 :使用渠道号
                 if (useChannel == 1) {
@@ -478,6 +480,8 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
                 if (campaignId == null) {
                     continue;
                 }
+                //赋值本次执行可创建数
+                videoCnt = strategy.getToBeBuiltCnt();
                 /*根据匹配逻辑,定向包和素材进行匹配,获取匹配后的素材*/
                 getTargetsAndVideos(strategy, allVideos, videoKey, appId, campaignId, appInfo.getAppVersion(), 0);
             }
@@ -673,6 +677,8 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
                 if (null == newCampaignId) {
                     return videoCnt;
                 }
+                //赋值本次执行可创建数
+                videoCnt = strategy.getToBeBuiltCnt();
                 log.info("---------获取计划成功,计划id:{}", newCampaignId);
 
                 if (!Check.isNull(channel)) {
@@ -895,6 +901,8 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
                 if (campaignId == null) {
                     continue;
                 }
+                //赋值本次执行可创建数
+                videoCnt = strategy.getToBeBuiltCnt();
                 /*根据匹配逻辑,定向包和素材进行匹配,获取匹配后的素材*/
                 getProTargetsAndVideos(strategy, proVideos, programKey, 0, appId, campaignId, appInfo.getAppVersion());
             }