diff --git a/app/Http/Controllers/Mobile/UserController.php b/app/Http/Controllers/Mobile/UserController.php index fa0d48c..098c2ee 100755 --- a/app/Http/Controllers/Mobile/UserController.php +++ b/app/Http/Controllers/Mobile/UserController.php @@ -601,9 +601,9 @@ class UserController extends CommonController $user = User::where('mobile', $all['mobile'])->first(); $list = CourseContentCheck::where('course_id', $all['course_id']) ->where(function ($query) use ($all) { -// if (isset($all['course_content_id'])) { -// $query->where('course_content_id', $all['course_content_id']); -// } + if (isset($all['course_content_id'])) { + $query->where('course_content_id', $all['course_content_id']); + } })->where('user_id', $user->id) ->orderBy('created_at', 'desc') ->get();