|
|
|
|
@ -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();
|
|
|
|
|
|