|
@@ -226,10 +226,13 @@ class SubNoticeJobs implements ShouldQueue
|
|
|
if ($statistics_day < 1) {
|
|
if ($statistics_day < 1) {
|
|
|
return ['now_week' => $now_week, 'statistics_day' => $statistics_day, 'statistics_start_time' => '', 'statistics_end_time' => '', 'push_time' => '', 'notice_week_config' => $notice_week_config];
|
|
return ['now_week' => $now_week, 'statistics_day' => $statistics_day, 'statistics_start_time' => '', 'statistics_end_time' => '', 'push_time' => '', 'notice_week_config' => $notice_week_config];
|
|
|
}
|
|
}
|
|
|
- //获取统计开始时间
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /** 新规则,统计时间为上一后期延长一天,且包扩今天的时间 */
|
|
|
|
|
+ $statistics_day = $statistics_day -1;
|
|
|
$statistics_start_time = Carbon::today()->subDays($statistics_day)->startOfDay()->toDateTimeString();
|
|
$statistics_start_time = Carbon::today()->subDays($statistics_day)->startOfDay()->toDateTimeString();
|
|
|
- //获取昨日结束时间
|
|
|
|
|
- $statistics_end_time = Carbon::today()->subDays(1)->endOfDay()->toDateTimeString();
|
|
|
|
|
|
|
+ //获取今日结束时间
|
|
|
|
|
+ $statistics_end_time = Carbon::today()->endOfDay()->toDateTimeString();
|
|
|
|
|
+
|
|
|
return ['now_week' => $now_week, 'statistics_day' => $statistics_day, 'statistics_start_time' => $statistics_start_time, 'statistics_end_time' => $statistics_end_time, 'push_time' => $data->push_time, 'notice_week_config' => $notice_week_config];
|
|
return ['now_week' => $now_week, 'statistics_day' => $statistics_day, 'statistics_start_time' => $statistics_start_time, 'statistics_end_time' => $statistics_end_time, 'push_time' => $data->push_time, 'notice_week_config' => $notice_week_config];
|
|
|
}
|
|
}
|
|
|
|
|
|