Browse Source

素材上新逻辑修改

songyh 4 years ago
parent
commit
b7fa7d8cc6

+ 3 - 1
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/AiBytedanceAdvertiserStrategyServiceImpl.java

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