fix 设置代理不判断注销用户

main
fengxinyhyl 6 months ago
parent 5cd3beb5cb
commit 2b8ea9a126
  1. 1
      app/controller/admin/user/User.php

@ -469,6 +469,7 @@ class User extends BaseController
if($agent_district_id){ if($agent_district_id){
$where[] = array('agent_district_id' , '=', $agent_district_id); $where[] = array('agent_district_id' , '=', $agent_district_id);
$where[] = array('uid' , '<>', $id); $where[] = array('uid' , '<>', $id);
$where[] = array('status' , '=', 1);
$exist = $this->repository->getWhere($where); $exist = $this->repository->getWhere($where);
if($exist){ if($exist){
return app('json')->fail('该代理已存在'); return app('json')->fail('该代理已存在');

Loading…
Cancel
Save