Quellcode durchsuchen

账户报表调试

zhaoxian vor 1 Jahr
Ursprung
Commit
64fafa5870

+ 2 - 1
job-live/src/main/java/cn/com/ctop/job/live/service/impl/KuaishouLiveAccountReportDailyServiceImpl.java

@@ -41,8 +41,9 @@ public class KuaishouLiveAccountReportDailyServiceImpl implements IKuaishouLiveA
     @Override
     public void getKuaishouAccountReport(Long accountId, String token) {
         try {
+            String yesterday2 = DateUtils.getSubtractTime(new Date(), 1);
             String yesterday = DateUtils.getSubtractTime(new Date(), 0);
-            long startDate = DateUtils.timeToStamp(yesterday + " 00:00:00");
+            long startDate = DateUtils.timeToStamp(yesterday2 + " 00:00:00");
             long endDate = DateUtils.timeToStamp(yesterday + " 23:59:59");
             getAccountReport(accountId, token, startDate, endDate, 1);
             Thread.sleep(200);