学习统计改成凌晨2点开始

dev_local_lzdx
daiao 4 years ago
parent 2136011ebe
commit 89c50c995d

@ -61,8 +61,8 @@ class StatisticSchoolDailyReportTask
def yesterday
@_yesterday ||= begin
# 每日凌晨5点为节点
end_time = Time.zone.now.beginning_of_day + 5.hour
# 每日凌晨2点为节点
end_time = Time.zone.now.beginning_of_day + 2.hour
begin_time = end_time - 1.day
begin_time..end_time
end

Loading…
Cancel
Save