master
cody 3 months ago
parent 0d3671d56e
commit 8d70b245d7

@ -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'])) {

Loading…
Cancel
Save