diff --git a/app/controller/admin/user/User.php b/app/controller/admin/user/User.php index cc46d06..50e1a3f 100644 --- a/app/controller/admin/user/User.php +++ b/app/controller/admin/user/User.php @@ -469,6 +469,7 @@ class User extends BaseController if($agent_district_id){ $where[] = array('agent_district_id' , '=', $agent_district_id); $where[] = array('uid' , '<>', $id); + $where[] = array('status' , '=', 1); $exist = $this->repository->getWhere($where); if($exist){ return app('json')->fail('该代理已存在');