Sfoglia il codice sorgente

修改数据库连接端口++同步代码加synchronized

songyh 3 anni fa
parent
commit
0e0e5f73cf

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

@@ -83,13 +83,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
         UserAllocation userAllocation = userAllocationService.getByAccountId(strategy.getAccountId());
         if(null == userAllocation||userAllocation.getAccountStatus()!=0){
             log.info("此账户不存在或者已经被关闭=>accountId:{}", token.getAccountId());
-            AiBytedanceAutocreateLog iBytedanceAutocreateLog = new AiBytedanceAutocreateLog(
-                    token.getAccountId(),
-                    "获取账户",
-                    500,
-                    "此账户不存在或者已经被关闭=>accountId:" + token.getAccountId(),
-                    "userAllocationService.getByAccountId => "+ token.getAccountId());
-            iBytedanceAutocreateLogService.save(iBytedanceAutocreateLog);
             return videoCnt;
         }
         //获取全量广告组数据
@@ -112,14 +105,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
             return videoCnt;
         }
         log.info("获取{}素材个数:{}=>accountId:{}",BytedanceCreativeMatTypeEnum.getNameByType(createType+""),videoInfos.size(),token.getAccountId());
-        AiBytedanceAutocreateLog iBytedanceAutocreateLogofVideoInfo = new AiBytedanceAutocreateLog(
-                token.getAccountId(),
-                "获取素材",
-                200,
-                "获取"+BytedanceCreativeMatTypeEnum.getNameByType(createType+"")+"素材个数"+videoInfos.size(),
-                "");
-        iBytedanceAutocreateLogService.save(iBytedanceAutocreateLogofVideoInfo);
-
         for (ByteDanceVideoInfo video:videoInfos) {
             //判断此素材为视频
             if ("video".equalsIgnoreCase(video.getMaterialType())){
@@ -1564,13 +1549,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
             CtopOauthToken token = tokenService.getOauthTokenByAccountId(strategy.getAccountId()+"");
             if (null == token) {
                 log.info("token获取失败=>accountId:{}", strategy.getAccountId());
-                AiBytedanceAutocreateLog iBytedanceAutocreateLog = new AiBytedanceAutocreateLog(
-                        strategy.getAccountId(),
-                        "获取token",
-                        500,
-                        "token获取失败=>accountId:" + strategy.getAccountId(),
-                        "tokenService.getOauthTokenByAccountId => "+ strategy.getAccountId());
-                iBytedanceAutocreateLogService.save(iBytedanceAutocreateLog);
                 return;
             }
             Long customUnitCnt = strategy.getCampaignAdCnt()*strategy.getCampaignCnt();