|
@@ -303,12 +303,19 @@ public class KuaishouController {
|
|
private CompassBindAdvertisersService compassBindAdvertisersService;
|
|
private CompassBindAdvertisersService compassBindAdvertisersService;
|
|
|
|
|
|
@GetMapping(value = "testD")
|
|
@GetMapping(value = "testD")
|
|
- public void testD(Long accountId) throws Exception {
|
|
|
|
- List<JSONObject> tokens = tokenService.selectKuaiShouToken();
|
|
|
|
- String todayStr = DateUtil.formatDate(new Date());
|
|
|
|
- Integer todayInt = DateUtil.getIntegerDate(todayStr);
|
|
|
|
- Integer yesterdayInt = DateUtil.getIntegerDate(DateUtil.getAnotherDay("yyyy-MM-dd", todayStr, -1));
|
|
|
|
- tokens.forEach(token -> accountWarningService.kuaiShouAccountWarning(token.getLong("accountId"), todayInt, yesterdayInt));
|
|
|
|
|
|
+ public void testD() throws Exception {/*
|
|
|
|
+ Long advertiserId = 4361966075L;
|
|
|
|
+ String token = tokenService.getOuthTokenAccountId(39526067L);
|
|
|
|
+ compassBindAdvertisersService.openapiGwUcV1Advertisers(advertiserId,token);*/
|
|
|
|
+
|
|
|
|
+ String token = tokenService.getAgentTokenByAgentId(723L);
|
|
|
|
+ String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
|
+ String yesterday = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
|
+// List<CompassBindAdvertisers> list = compassBindAdvertisersService.list();
|
|
|
|
+// for (CompassBindAdvertisers compassBindAdvertisers : list) {
|
|
|
|
+ compassBindAdvertisersService.getCompassAdvertisersUnitReportDaily(
|
|
|
|
+ 37310866L, token, yesterday, yesterday, 1);
|
|
|
|
+// }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|