ZxcZxc123 2 tahun lalu
induk
melakukan
8ca3be0087
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/system/controller/CourseController.php

+ 1 - 1
app/system/controller/CourseController.php

@@ -187,7 +187,7 @@ class CourseController
     public function updateCourseAudit()
     {
         $course_id = Request::param('course_id');
-        $course = CourseModel::find($course_id);
+        $course = CourseModel::where('course_id', $course_id)->find();
 
         if (!$course) {
             return app('json')->fail('课程不存在');