|
@@ -32,14 +32,14 @@ public class KuaishouCampaignGroupJob implements Job {
|
|
|
public void run() {
|
|
|
//1:查询当日数据
|
|
|
List<CtopOauthToken> tokens = tokenService.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_KUAISHOU);
|
|
|
- executorService = Executors.newFixedThreadPool(8);
|
|
|
+ executorService = Executors.newFixedThreadPool(3);
|
|
|
tokens.forEach(token -> {
|
|
|
executorService.submit(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
try {
|
|
|
//1:获取全量广告计划数据
|
|
|
- // kuaishouInterfaceService.getCampaignList(token, null, null);
|
|
|
+ kuaishouInterfaceService.getCampaignList(token, null, null);
|
|
|
//1:获取全量广告组数据
|
|
|
kuaishouInterfaceService.getGroupList(token, null, null);
|
|
|
} catch (Exception e) {
|