From 3a4d79833cbfed6c88fc3bf4daa9cc9f2c5bae2e Mon Sep 17 00:00:00 2001 From: yaosen <741606767@qq.com> Date: Wed, 3 Jul 2024 17:03:50 +0800 Subject: [PATCH] a --- service/app/admin/controller/QaController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/app/admin/controller/QaController.php b/service/app/admin/controller/QaController.php index cae52517..bea6652a 100644 --- a/service/app/admin/controller/QaController.php +++ b/service/app/admin/controller/QaController.php @@ -50,6 +50,7 @@ class QaController extends base { $title = $request->get('title'); $status = $request->get('status'); + Log::warning('======',['aa'=>$status]); $list = Qas::with(['qaCitys','qaQuestions'=>function ($query) { $query->order('sort desc'); @@ -58,7 +59,7 @@ class QaController extends base if (!empty($title)){ $list = $list->where('title','like','%'.$title.'%'); } - if (!empty($status)){ + if (!is_null($status)){ $list = $list->where('status',$status); } $list = $list->paginate($request->get('limit',10));