From 7faf327af1786c4967b22ea592b402b27af787fb Mon Sep 17 00:00:00 2001 From: qianhy Date: Tue, 14 Mar 2023 17:49:36 +0800 Subject: [PATCH] common shop_app fixbug params types --- admin/controllers/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/controllers/Common.php b/admin/controllers/Common.php index 868a8623..77071cca 100644 --- a/admin/controllers/Common.php +++ b/admin/controllers/Common.php @@ -470,7 +470,6 @@ class Common extends CI_Controller $page = $this->input->post('page') ? intval($this->input->post('page')) : 1; $size = $this->input->post('size') ? intval($this->input->post('size')) : 10; $type = intval($this->input->post('type')); - $types = intval($this->input->post('types')); $brand_id = intval($this->input->post('brand_id')); $city_id = intval($this->input->post('city_id')); $county_id = intval($this->input->post('county_id')); @@ -492,6 +491,7 @@ class Common extends CI_Controller $city_id && $where['city_id'] = $city_id; $county_id && $where['county_id'] = $county_id; $type && $where['type'] = $type; + $types = $this->input->post('types'); $types && $where['type in (' . $types . ')'] = null; $ids && $where['id not in (' . $ids . ')'] = null; $typeAry = $this->mdBiz->type_ary();