Browse Source

我的上课历史

lizhen_gitee 1 year ago
parent
commit
aeb713b102
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/coach/Lesson.php

+ 1 - 1
application/api/controller/coach/Lesson.php

@@ -279,7 +279,7 @@ class Lesson extends Apic
         $list = Db::name('lesson_slot')->alias('slot')
             ->field('slot.*,lesson.name,lesson.name_en')
             ->join('lesson','slot.lesson_id = lesson.id','LEFT')
-            ->where('slot.status',20);
+            ->where($where);
 
         $list->where('find_in_set(:coach_ids,coach_ids)', ['coach_ids' => $this->auth->id]);