From c7733994e13fcb8673e1a9894e1aff5f389b7e2a Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Wed, 3 Sep 2025 09:51:05 +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 fd25a62..cc23f06 100755 --- a/app/Http/Controllers/Admin/OtherController.php +++ b/app/Http/Controllers/Admin/OtherController.php @@ -142,7 +142,7 @@ class OtherController extends CommonController ->whereNotIn('status', [4, 5]) ->where(function ($query) use ($courses) { $query->whereIn('course_id', $courses->pluck('id')); - })->count(); + })->distinct('user_id')->count(); // 审核通过人数 $courseSign = CourseSign::where('status', 1) ->whereDate('created_at', '>=', $start_date)