From 4eda5ad604b8d1e029babd28050791a0c5dbc9ae Mon Sep 17 00:00:00 2001 From: dengbw Date: Thu, 23 Sep 2021 09:34:26 +0800 Subject: [PATCH] admin_customer_923 --- admin/controllers/receiver/Customer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {