管理控制台功能更新

This commit is contained in:
技术老胡
2024-09-07 17:48:35 +08:00
parent 5ad72a36b2
commit 984601841f
3 changed files with 152 additions and 25 deletions

View File

@@ -37,7 +37,7 @@ class ConsoleController extends BaseController
// 时间段
$month_start = date('Y-m-01 00:00:00');
$month_end = date('Y-m-d 23:59:59', strtotime('last day of this month'));
$week_start = date('Y-m-d 00:00:00', strtotime('this monday'));
$week_start = date('Y-m-d 00:00:00', strtotime('monday this week'));
$week_end = date('Y-m-d 23:59:59', strtotime('next monday') - 1);
$yesterday_start = date('Y-m-d 00:00:00', strtotime('yesterday'));
$yesterday_end = date('Y-m-d 23:59:59', strtotime('yesterday'));