From 2b8ea9a126154c6ebebd7de6c18ad70539f8bfc4 Mon Sep 17 00:00:00 2001 From: fengxinyhyl Date: Fri, 7 Jun 2024 09:48:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AE=BE=E7=BD=AE=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E4=B8=8D=E5=88=A4=E6=96=AD=E6=B3=A8=E9=94=80=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/user/User.php | 1 + 1 file changed, 1 insertion(+) 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('该代理已存在');