diff --git a/api/controllers/wxapp/app/Series.php b/api/controllers/wxapp/app/Series.php index f9793739..6ddd1a0e 100644 --- a/api/controllers/wxapp/app/Series.php +++ b/api/controllers/wxapp/app/Series.php @@ -1,5 +1,5 @@ input_param('keyword'); - $where = [ - 'status' => 1, - '1' => null - ]; - + $where = ['status' => 1]; $keyword && $where["name like '%{$keyword}%'"] = null; $count = $this->auto_brand_model->count($where); @@ -79,6 +75,7 @@ class Series extends Wxapp{ 'list' => $list, 'total' => $count ]; + return $data; }