yumeng 2 år sedan
förälder
incheckning
9196c624a1

+ 4 - 4
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/service/impl/AdUnitReportServiceImpl.java

@@ -450,7 +450,7 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
      * @param page
      */
     @Override
-    public void getKuaishouDailyFlows(Long advertiserId, String accessToken, String startDate,String endDate,int page) {
+    public void getKuaishouDailyFlows(Long advertiserId, String accessToken, String startDate, String endDate, int page) {
         log.info("获取账户流水========,账户id:{},page--{}", advertiserId, page);
         Integer page_size = 500;
         String url = postUrl + KuaishouConstant.FUND_DAILY_FLOWS;
@@ -460,8 +460,8 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
         param.put("advertiser_id", advertiserId);
         param.put("page_size", page_size);
         param.put("page", page);
-        param.put("start_date", "2022-12-01");
-        param.put("end_date", "2023-01-04");
+        param.put("start_date", startDate);
+        param.put("end_date", endDate);
         String result = HttpUtils.httpPostRequest(url, param, headers);
         JSONObject resultJson = JSONObject.parseObject(result);
         Integer code = resultJson.getInteger("code");
@@ -490,7 +490,7 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
             toGet = false;
         }
         if (toGet) {
-            getKuaishouDailyFlows(advertiserId, accessToken, startDate,endDate,page + 1);
+            getKuaishouDailyFlows(advertiserId, accessToken, startDate, endDate, page + 1);
         } else {
             log.info("账户流水========获取完成:accountId:{}", advertiserId);
         }