From d05197516af5d4e848471e8248a3fe7c00b3039d Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Fri, 18 Jul 2025 14:15:52 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/OtherController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/OtherController.php b/app/Http/Controllers/Admin/OtherController.php index dfb4794..166e156 100755 --- a/app/Http/Controllers/Admin/OtherController.php +++ b/app/Http/Controllers/Admin/OtherController.php @@ -66,7 +66,7 @@ class OtherController extends CommonController 'total' => User::count() - collect($industryTotal)->sum('total') ]; // 课程统计 - $courseTypes = CourseType::with('courses')->where('is_chart',1)->get(); + $courseTypes = CourseType::where('is_chart',1)->get(); foreach ($courseTypes as $courseType) { $courseType->course_signs_total = CourseSign::whereIn('course_id', $courseType->courses->pluck('id')) ->where('status', 1)