...
|
...
|
@@ -487,7 +487,7 @@ class HouseAdmin extends Api |
|
|
if(!HouseAdminModel::get(['user_id'=>$user['id'],'house_id'=>$post['house_id'],'is_direct'=>1])){
|
|
|
$this->error('您不是该小区的主管理员,无法添加子管理员');
|
|
|
}
|
|
|
if(!$admin_user = \app\common\controller\User::get(['id_num'=>$post['id_num']])){
|
|
|
if(!$admin_user = \app\api\model\User::get(['id_num'=>$post['id_num']])){
|
|
|
$this->error('用户不存在');
|
|
|
}
|
|
|
if($admin_user['id'] == $user['id']){
|
...
|
...
|
|