yumeng 4 anni fa
parent
commit
521c5c6c6f

+ 3 - 6
module-job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/handler/KuaishouDailyAccountReportLoadJob.java

@@ -37,13 +37,10 @@ public class KuaishouDailyAccountReportLoadJob {
         if (null == tokens || tokens.isEmpty()) {
             XxlJobHelper.log("定时获取快手数据异常:未获取到可用的token");
             XxlJobHelper.handleFail();
-            return ;
+            return;
         }
-        tokens.forEach(token -> executorService.submit(() ->{
-                    kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate2, getDate2,"adScene");
-                    kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate, getDate,"adScene");
-
-
+        tokens.forEach(token -> executorService.submit(() -> {
+            kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate2, getDate, "adScene");
         }));
     }
 }

+ 0 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -301,12 +301,10 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         param.put("temporal_granularity", "DAILY");
         param.put("page_size", 2000);
         param.put("page", page);
-        System.out.println(param);
         String result = HttpUtils.httpPostRequest(url, param, headers);
         JSONObject resultJson = JSONObject.parseObject(result);
         Integer code = resultJson.getInteger("code");
         String message = resultJson.getString("message");
-        System.out.println(resultJson.toJSONString());
         if (null == code || code != 0) {
             log.error("获取快手广告主报表异常:{},accountId:{}", message, token.getAccountId());
             return;