|
|
|
|
@ -599,6 +599,9 @@ class UserController extends CommonController
|
|
|
|
|
return $this->fail([ResponseCode::ERROR_BUSINESS, '未报名课程']);
|
|
|
|
|
}
|
|
|
|
|
$user = User::where('mobile', $all['mobile'])->first();
|
|
|
|
|
if (empty($user)) {
|
|
|
|
|
return $this->fail([ResponseCode::ERROR_BUSINESS, '用户不存在']);
|
|
|
|
|
}
|
|
|
|
|
$list = CourseContentCheck::where('course_id', $all['course_id'])
|
|
|
|
|
->where(function ($query) use ($all) {
|
|
|
|
|
if (isset($all['course_content_id'])) {
|
|
|
|
|
|