@@ -246,8 +246,12 @@ public class SampleTest {
@Test
public void testData11(){
- CtopOauthToken token =tokenService.getTokenByAccountId(1683711016125448L);
- reportService.getAdvertiserPlanRuleData(token,new Date(),new Date(), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
+ CtopOauthToken token =tokenService.getTokenByAccountId(9556344L);
+ int dimeDiff = 5;
+ Date now = new Date();
+ String startTime = DateUtils.formatDate("2021-01-11 18:25:00");
+ String endTime = DateUtils.formatDate(now,"2021-01-11 18:35:00");
+ kuaishouInterfaceService.getSuZaoList(token.getAccessToken(), token.getAccountId(), 1, startTime, endTime);
}
@@ -64,10 +64,11 @@ public class AiKuaishouNewCreateCampaignServiceImpl implements IAiKuaishouNewCre
// 2.2 执行 素造的 视频拉取服务,时间过滤执行 yyyy-MM-dd HH:mm:ss
// 时间差,单位为分钟
- int dimeDiff = 5;
+ int timeStart = 5;
+ int timeEnd = 10;
Date now = new Date();
- String startTime = DateUtils.formatDate(new Date(now.getTime() - dimeDiff*60*1000),"yyyy-MM-dd HH:mm:ss");
- String endTime = DateUtils.formatDate(now,"yyyy-MM-dd HH:mm:ss");
+ String startTime = DateUtils.formatDate(new Date(System.currentTimeMillis() - timeStart*60*1000),"yyyy-MM-dd HH:mm:ss");
+ String endTime = DateUtils.formatDate(new Date(System.currentTimeMillis() - timeEnd*60*1000),"yyyy-MM-dd HH:mm:ss");
kuaishouInterfaceService.getSuZaoList(token.getAccessToken(), token.getAccountId(), 1, startTime, endTime);
@@ -2945,6 +2945,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
String result = HttpUtils.httpPostRequest(url, param, headers);
JSONObject resultJson = JSONObject.parseObject(result);
+ System.out.println(resultJson.toJSONString());
if (Check.isNull(resultJson)) {
return;