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));