yumeng 1 tydzień temu
rodzic
commit
7be0b25909

+ 3 - 6
jeecg-boot-module-system/src/main/java/cn/com/ctop/toutiao/modules/report/controller/BytedancePushDataController.java

@@ -72,22 +72,19 @@ public class BytedancePushDataController {
                             public void run() {
                                 JSONObject tokenJson = bytedanceProjectService.getTokenByAccountId(advertiserId);
                                 if (!Check.isNull(tokenJson)) {
-                                    Map<Long, JSONObject> projectMap = new HashMap<>();
                                     String accessToken = tokenJson.getString("accessToken");
                                     Integer accountStatus = tokenJson.getInteger("accountStatus");
                                     if (!Check.isNull(accountStatus)) {
                                         if (accountStatus == 0) {
+                                            Map<Long, JSONObject> projectMap = new HashMap<>();
                                             bytedanceProjectService.getPromotionList(advertiserId, accessToken, ids, projectMap, 1);
+                                        } else {
+                                            log.error("此账户已暂停,跳过预警,accountId:{}", advertiserId);
                                         }
-
                                     }
-
-
                                 }
                             }
                         });
-
-
                     }
                 }
             }