common shop_app fixbug params types
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user