|
@@ -12,6 +12,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.fasterxml.jackson.databind.DeserializationFeature;
|
|
import com.fasterxml.jackson.databind.DeserializationFeature;
|
|
import com.fasterxml.jackson.databind.JsonNode;
|
|
import com.fasterxml.jackson.databind.JsonNode;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
+import com.google.gson.Gson;
|
|
import org.apache.http.client.CookieStore;
|
|
import org.apache.http.client.CookieStore;
|
|
import org.apache.http.impl.client.BasicCookieStore;
|
|
import org.apache.http.impl.client.BasicCookieStore;
|
|
import org.apache.http.impl.cookie.BasicClientCookie;
|
|
import org.apache.http.impl.cookie.BasicClientCookie;
|
|
@@ -185,8 +186,9 @@ public class KuaishouReportDailyAgentServiceImpl extends ServiceImpl<KuaishouRep
|
|
headerMap.put("Content-Type","application/json;charset=utf-8");
|
|
headerMap.put("Content-Type","application/json;charset=utf-8");
|
|
headerMap.put("User-Agent",HttpUtils2.USER_AGENT);
|
|
headerMap.put("User-Agent",HttpUtils2.USER_AGENT);
|
|
while(DateUtils.compareDate(currentDate,endDate)<=0){
|
|
while(DateUtils.compareDate(currentDate,endDate)<=0){
|
|
|
|
+ //{"agentId":403756224,"startDate":"2020-03-05","endDate":"2020-03-05","sortKey":"","isAscending":false,"pageInfo":{"pageSize":19,"currentPage":1,"totalCount":100}}
|
|
String listUrl = "https://agent.e.kuaishou.com/rest/dsp/agent/account/data/list";
|
|
String listUrl = "https://agent.e.kuaishou.com/rest/dsp/agent/account/data/list";
|
|
- String postData = "{\"agentId\":403756224,\"date\":\""+currentDate+"\",\"sortKey\":\"totalCharge\",\"isAscending\":false,\"pageInfo\":{\"totalCount\":1616,\"currentPage\":1,\"pageSize\":999999}}";
|
|
|
|
|
|
+ String postData = "{\"agentId\":403756224,\"startDate\":\""+currentDate+"\",\"endDate\":\""+currentDate+"\",\"isAscending\":false,\"pageInfo\":{\"pageSize\":19,\"currentPage\":1,\"totalCount\":100}}";
|
|
String result = HttpUtils2.httpPostRequestTest(listUrl,postData,headerMap);
|
|
String result = HttpUtils2.httpPostRequestTest(listUrl,postData,headerMap);
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
JsonNode resultNode = mapper.readTree(result);
|
|
JsonNode resultNode = mapper.readTree(result);
|