@ -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('该代理已存在');