|
@@ -109,9 +109,9 @@ public class KuaishouLiveAccountReportDailyServiceImpl implements IKuaishouLiveA
|
|
param.put("advertiser_id", accountId);
|
|
param.put("advertiser_id", accountId);
|
|
JSONObject params = new JSONObject();
|
|
JSONObject params = new JSONObject();
|
|
//当前小时数
|
|
//当前小时数
|
|
- Integer hourNumber = DateUtils.getHourNumber();
|
|
|
|
|
|
+// Integer hourNumber = DateUtils.getHourNumber();
|
|
//当日当时整点时间
|
|
//当日当时整点时间
|
|
- String date = DateUtils.getDate() + " " + hourNumber + ":00:00";
|
|
|
|
|
|
+ String date = DateUtils.getDate();
|
|
params.put("start_time", DateUtils.timeToStamp(date));
|
|
params.put("start_time", DateUtils.timeToStamp(date));
|
|
params.put("end_time", new Date().getTime());
|
|
params.put("end_time", new Date().getTime());
|
|
params.put("view_type", 1);
|
|
params.put("view_type", 1);
|
|
@@ -130,7 +130,7 @@ public class KuaishouLiveAccountReportDailyServiceImpl implements IKuaishouLiveA
|
|
JSONObject object = data.getJSONObject(i);
|
|
JSONObject object = data.getJSONObject(i);
|
|
KuaishouLiveAccountReportDaily accountReport = JSONObject.parseObject(object.toJSONString(), KuaishouLiveAccountReportDaily.class);
|
|
KuaishouLiveAccountReportDaily accountReport = JSONObject.parseObject(object.toJSONString(), KuaishouLiveAccountReportDaily.class);
|
|
accountReport.setAccountId(accountId);
|
|
accountReport.setAccountId(accountId);
|
|
- accountReport.setHour(hourNumber);
|
|
|
|
|
|
+ accountReport.setHour(object.getInteger("report_hour"));
|
|
accountReport.setReportDate(Long.valueOf(DateUtils.timestampToStr(object.getLong("report_date"))));
|
|
accountReport.setReportDate(Long.valueOf(DateUtils.timestampToStr(object.getLong("report_date"))));
|
|
list.add(accountReport);
|
|
list.add(accountReport);
|
|
}
|
|
}
|