|
@@ -95,11 +95,21 @@ public class KuaishouLiveAccountReportDailyServiceImpl implements IKuaishouLiveA
|
|
|
@Override
|
|
|
public void getKuaishouAccountHourReport(Long accountId, String token) {
|
|
|
try {
|
|
|
- String beforeYesterday = DateUtils.getSubtractTime(new Date(), 3);
|
|
|
- long startDate = DateUtils.timeToStamp(beforeYesterday + " 00:00:00");
|
|
|
+ String beforeYesterday = DateUtils.getSubtractTime(new Date(), 2);
|
|
|
+ long beforeYesterdayStartDate = DateUtils.timeToStamp(beforeYesterday + " 00:00:00");
|
|
|
+ long beforeYesterdayEndDate = DateUtils.timeToStamp(beforeYesterday + " 23:59:59");
|
|
|
+ getAccountReportHour(accountId, beforeYesterdayStartDate, beforeYesterdayEndDate, token, 1);
|
|
|
+
|
|
|
+ String yesterday = DateUtils.getSubtractTime(new Date(), 1);
|
|
|
+ long yesterdayStartDate = DateUtils.timeToStamp(yesterday + " 00:00:00");
|
|
|
+ long yesterdayEndDate = DateUtils.timeToStamp(yesterday + " 23:59:59");
|
|
|
+ getAccountReportHour(accountId, yesterdayStartDate, yesterdayEndDate, token, 1);
|
|
|
+
|
|
|
String date = DateUtils.getDate();
|
|
|
long endDate = new Date().getTime();
|
|
|
+ long startDate = DateUtils.timeToStamp(date + " 00:00:00");
|
|
|
getAccountReportHour(accountId, startDate, endDate, token, 1);
|
|
|
+
|
|
|
Thread.sleep(1000);
|
|
|
sendTips("hourly", accountId, beforeYesterday, date);
|
|
|
} catch (Exception e) {
|
|
@@ -116,7 +126,6 @@ public class KuaishouLiveAccountReportDailyServiceImpl implements IKuaishouLiveA
|
|
|
//当前小时数
|
|
|
Integer hourNumber = DateUtils.getHourNumber();
|
|
|
//当日当时整点时间
|
|
|
- String date = DateUtils.getDate() + " 00:00:00";
|
|
|
params.put("start_time", startDate);
|
|
|
params.put("end_time", endDate);
|
|
|
params.put("view_type", 1);
|