From 3de081a51ec89085c43059d93d22a9f08b99f5b2 Mon Sep 17 00:00:00 2001 From: Dai Date: Wed, 15 Jan 2025 21:07:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E5=8F=91=E5=B8=83=E5=AD=A6?= =?UTF-8?q?=E7=94=9F=E8=AF=BE=E7=A8=8B=E8=AF=BE=E8=A1=A8=E4=B8=AD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/StudentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/StudentController.php b/app/api/controller/StudentController.php index c1f0903..ee6a7ce 100644 --- a/app/api/controller/StudentController.php +++ b/app/api/controller/StudentController.php @@ -98,7 +98,7 @@ class StudentController extends BaseController $request_data = $request->post(); $month = date('Y-m', strtotime($request_data['date'])); - $student_schedule = StudentSchedule::where(['student_id' => $request->student->id]) + $student_schedule = StudentSchedule::where(['student_id' => $request->student->id, 'is_publish' => 1]) ->where(['month' => $month]) ->with(['teacher', 'subject']) ->order('start_time asc')