|
@@ -60,6 +60,8 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
@Autowired
|
|
@Autowired
|
|
private IBytedanceImageInfoService bytedanceImageInfoService;
|
|
private IBytedanceImageInfoService bytedanceImageInfoService;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ private IBytedanceAiVideoCreativeLogService videoCreativeLogService;
|
|
|
|
+ @Autowired
|
|
private IMaterialInfoService materialInfoService;
|
|
private IMaterialInfoService materialInfoService;
|
|
@Autowired
|
|
@Autowired
|
|
private IByteDanceCampaignService campaignService;
|
|
private IByteDanceCampaignService campaignService;
|
|
@@ -222,6 +224,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
BytedanceAiVideoCreativeLog creativeLog = new BytedanceAiVideoCreativeLog(strategy,adId,campaignId,video);
|
|
BytedanceAiVideoCreativeLog creativeLog = new BytedanceAiVideoCreativeLog(strategy,adId,campaignId,video);
|
|
|
|
+ videoCreativeLogService.saveOrUpdate(creativeLog);
|
|
videoCnt --;
|
|
videoCnt --;
|
|
if(videoCnt<=0){
|
|
if(videoCnt<=0){
|
|
return 0L;
|
|
return 0L;
|
|
@@ -229,7 +232,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return videoCnt;
|
|
return videoCnt;
|
|
-
|
|
|
|
}
|
|
}
|
|
private JSONObject getCreativeParams(AiBytedanceAdvertiserStrategy strategy, Long adId,ByteDanceVideoInfo videoInfo,CtopOauthToken token) {
|
|
private JSONObject getCreativeParams(AiBytedanceAdvertiserStrategy strategy, Long adId,ByteDanceVideoInfo videoInfo,CtopOauthToken token) {
|
|
JSONObject params = new JSONObject();
|
|
JSONObject params = new JSONObject();
|