diff --git a/app/Models/CourseSign.php b/app/Models/CourseSign.php index 53a10ab..f0a7c38 100755 --- a/app/Models/CourseSign.php +++ b/app/Models/CourseSign.php @@ -285,7 +285,7 @@ class CourseSign extends SoftDeletesModel // 未去重 'total' => $sourseSignList2->count(), // 已去重 - 'total_unique' => User::whereIn('id', $sourseSignList2->pluck('user_id'))->groupBy('mobile')->get()->count(), + 'total_unique' => User::whereIn('id', $sourseSignList2->pluck('user_id'))->distinct('mobile')->groupBy('mobile')->get()->count(), ]; }