From dc552fe84dce241251dc0043e69824219c0f4246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Sat, 20 Jul 2024 15:18:17 +0800 Subject: [PATCH] brand --- api/controllers/wxapp/app/Series.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; }