Browse Source

头条账户出价预警 筛除掉(企业号-头条——2370887L)

zhaoxian 3 năm trước cách đây
mục cha
commit
355e118079

+ 10 - 2
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/ByteDanceAdvertiserDataServiceImpl.java

@@ -261,9 +261,17 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
         if (null == data || data.isEmpty()) {
             return;
         }
+
+        UserAllocation userAllocation = userAllocationService.getByAccountId(token.getAccountId());
+        Long projectId = null;
+        if (!Check.isNull(userAllocation)) {
+            projectId = userAllocation.getProjectId();
+        }
         for (int i = 0; i < data.size(); i++) {
             JSONObject dataObject = data.getJSONObject(i);
-            checkBidType(token.getAccountId(), dataObject);
+            if (projectId != 2370887L) {
+                checkBidType(token.getAccountId(), dataObject);
+            }
             ByteDanceAdvertisePlan advertisePlan = new ByteDanceAdvertisePlan(dataObject, String.valueOf(token.getAccountId()));
             BigDecimal deepCpabid = dataObject.getBigDecimal("deep_cpabid");
             if (null != deepCpabid) {
@@ -414,7 +422,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
         //关停计划
         CtopOauthToken token = tokenService.getTokenByAccountId(accountId);
         marketingServiceImpl.updPlanStatus(token, Arrays.asList(planId), "disable");
-        log.info(">预警<,账户:{}=>计划:{}现已【关停】---> {}", accountId, planId,text);
+        log.info(">预警<,账户:{}=>计划:{}现已【关停】---> {}", accountId, planId, text);
         try {
             UserAllocation account = userAllocationService.getByAccountId(accountId);
             String userId = "";