master
cody 3 months ago
parent 3a3d4360fd
commit 0d3671d56e

@ -601,11 +601,10 @@ class UserController extends CommonController
$user = User::where('mobile', $all['mobile'])->first(); $user = User::where('mobile', $all['mobile'])->first();
$list = CourseContentCheck::where('course_id', $all['course_id']) $list = CourseContentCheck::where('course_id', $all['course_id'])
->where(function ($query) use ($all) { ->where(function ($query) use ($all) {
dd($all);
if (isset($all['course_content_id'])) { if (isset($all['course_content_id'])) {
$query->where('course_content_id', $all['course_content_id']); $query->where('course_content_id', $all['course_content_id']);
} }
})->where('user_id', $user->id) })->where('user_id1', $user->id)
->orderBy('created_at', 'desc') ->orderBy('created_at', 'desc')
->get(); ->get();
if ($list->isNotEmpty()) { if ($list->isNotEmpty()) {

Loading…
Cancel
Save