|
|
@@ -44,7 +44,8 @@ public class BytedanceCdpProjectServiceImpl implements IBytedanceCdpProjectServi
|
|
|
|
|
|
@Override
|
|
|
public void getProjectList(Long advertiserId, String type, Integer page) {
|
|
|
- log.info("执行:{}", advertiserId);
|
|
|
+ if (!Check.isNull(type))
|
|
|
+ log.info("--------执行:{}", advertiserId);
|
|
|
try {
|
|
|
boolean nextPage = false;
|
|
|
String accessToken = tokenMapper.onlyGetToken(advertiserId);
|
|
|
@@ -57,7 +58,7 @@ public class BytedanceCdpProjectServiceImpl implements IBytedanceCdpProjectServi
|
|
|
params.put("filtering", filtering);
|
|
|
}
|
|
|
params.put("page", page);
|
|
|
- params.put("page_size", 1100);//最大100
|
|
|
+ params.put("page_size", 100);//最大100
|
|
|
String url = "https://api.oceanengine.com/open_api/v3.0/project/list/";
|
|
|
String results = HttpUtils.httpGet(url, params, HttpUtils.postMHeaders(accessToken));
|
|
|
JSONObject obj = JSONObject.parseObject(results);
|