This commit is contained in:
Your Name
2026-08-13 16:37:37 +08:00
parent cbe71905c0
commit 21790e35f4
11 changed files with 1708 additions and 434 deletions
@@ -146,6 +146,17 @@ class FirstVisitRegistrationStatsLogic
$today = date('Y-m-d');
$tomorrow = date('Y-m-d', strtotime('+1 day'));
$dayAfterTomorrow = date('Y-m-d', strtotime('+2 days'));
if ($type === 'yesterday') {
$yesterday = date('Y-m-d', strtotime('-1 day'));
$dayBefore = date('Y-m-d', strtotime('-2 days'));
return [
'type' => 'yesterday', 'label' => '昨天', 'start' => $yesterday, 'end' => $yesterday,
'compare_start' => $dayBefore,
'compare_end' => $dayBefore,
'tomorrow' => $tomorrow, 'day_after_tomorrow' => $dayAfterTomorrow,
];
}
if ($type === 'week') {
$start = date('Y-m-d', strtotime('monday this week'));