diff --git a/admin/controllers/receiver/Customer.php b/admin/controllers/receiver/Customer.php index cf162a69..1b16531f 100644 --- a/admin/controllers/receiver/Customer.php +++ b/admin/controllers/receiver/Customer.php @@ -48,6 +48,9 @@ class Customer extends HD_Controller $size = $params['size'] = $params['size'] ? intval($params['size']) : 20; $where = array('status>=0' => null); + if (false == strpos($_SERVER['HTTP_HOST'], 'dev')) {//dev时不限制 + $where['biz_id<>'] = 1; + } if ($params['title']) { $where["{$params['search_tp']} like '%{$params['title']}%'"] = null; } @@ -55,7 +58,7 @@ class Customer extends HD_Controller strlen($params['status']) && $where["status"] = $params['status']; $params['cf_title'] && $where['cf_title'] = $params['cf_title']; if ($params['qdjl_id']) { - $re_bu = $this->app_licheb_users_model->get(array('id'=>$params['qdjl_id'])); + $re_bu = $this->app_licheb_users_model->get(array('id' => $params['qdjl_id'])); if ($re_bu['biz_id']) { $where["biz_id in({$re_bu['biz_id']})"] = null; } else {