ZxcZxc123 преди 1 година
родител
ревизия
1baf8b9e2e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/api/controller/Education.php

+ 1 - 1
app/api/controller/Education.php

@@ -131,7 +131,7 @@ class Education
      * @throws \think\db\exception\ModelNotFoundException
      * @throws \think\db\exception\ModelNotFoundException
      */
      */
     public function getCourseInfo($gr_id) {
     public function getCourseInfo($gr_id) {
-        $courses = DB::table('table_education_courses')
+        $courses = DB::table('table_education_course')
             ->where('course_status', 1)
             ->where('course_status', 1)
             ->whereIn('gr_id', (array) $gr_id)
             ->whereIn('gr_id', (array) $gr_id)
             ->where('course_audit', 1)
             ->where('course_audit', 1)