From b9a325559385e172ff2fda73ff23a25e2c04b75d Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Sat, 17 Jan 2026 15:02:35 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/CalendarsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/CalendarsController.php b/app/Http/Controllers/Admin/CalendarsController.php index 3c19137..fb12da8 100644 --- a/app/Http/Controllers/Admin/CalendarsController.php +++ b/app/Http/Controllers/Admin/CalendarsController.php @@ -80,7 +80,7 @@ class CalendarsController extends BaseController if (isset($all['month'])) { $query->where('start_time', 'like', $all['month'] . '%'); } - })->count(); + })->where('is_count_days', 1)->count(); // 本年开课场次 $yearCourseCount = Calendar::where(function ($query) use ($all) { if (isset($all['month'])) { @@ -88,7 +88,7 @@ class CalendarsController extends BaseController $year = date('Y', strtotime($all['month'])); $query->where('start_time', 'like', $year . '%'); } - })->count(); + })->where('is_count_days', 1)->count(); return $this->success(compact('list', 'monthDayCalendar', 'yearDayCalendar', 'monthCourseCount', 'yearCourseCount')); }