This commit is contained in:
Hankin 2026-05-19 10:05:38 +08:00
parent f176621376
commit b2f1bfd87c

View File

@ -364,7 +364,7 @@ class UserController extends Controller
Log::info(json_encode($endDate));
$endDate->sub(new \DateInterval('P1D'));
for ($i = 0; $i < 7; $i++) {
for ($i = 0; $i <= 7; $i++) {
$dates[] = $endDate->format('Y-m-d');
$endDate->sub(new \DateInterval('P1D')); // 减去一天
}