|
@@ -51,10 +51,14 @@ public class BytedancePlanLoadJob {
|
|
|
log.error("此账户未获取到相关token,accountId:{}", param);
|
|
|
return;
|
|
|
}
|
|
|
+ String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
+ String yesterda = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
+ String yesterda2 = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -2);
|
|
|
OauthToken oauthToken = new OauthToken();
|
|
|
oauthToken.setAccessToken(token);
|
|
|
oauthToken.setAccountId(Long.parseLong(param));
|
|
|
- advertiserDataService.getAdvertiserPlan(oauthToken, "", null, null);
|
|
|
+ advertiserDataService.getAdvertiserPlan(oauthToken, "", null, yesterda);
|
|
|
+ advertiserDataService.getAdvertiserPlan(oauthToken, "", null, yesterda2);
|
|
|
}
|
|
|
|
|
|
/**
|