|
|
@@ -180,10 +180,6 @@ class CourseController
|
|
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 修改审核状态
|
|
|
- * @return mixed
|
|
|
- */
|
|
|
/**
|
|
|
* 修改审核状态
|
|
|
* @return mixed
|
|
|
@@ -191,7 +187,7 @@ class CourseController
|
|
|
public function updateCourseAudit()
|
|
|
{
|
|
|
$course_id = Request::param('course_id');
|
|
|
- $course = CourseModel::findOrFail($course_id);
|
|
|
+ $course = CourseModel::find($course_id);
|
|
|
|
|
|
if (!$course) {
|
|
|
return app('json')->fail('课程不存在');
|