Commit a5da74d8 authored by 章建武's avatar 章建武

dep

parent 520df6f7
......@@ -18,8 +18,7 @@ class ArticleController extends Controller
{
$param = $request->param();
$model = $model->scope('where', $param);
if($param){
if(isset($param['_type'])){
$where = ['status'=>0,'type'=>$param['_type']];
}else{
$where = ['status'=>0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment