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')); }