...
|
...
|
@@ -482,6 +482,7 @@ class HouseAdmin extends Api |
|
|
$this->error(__('Mobile is incorrect'));
|
|
|
}
|
|
|
$user = $this->auth->getUser();
|
|
|
$post['user_id'] = $user['id'];
|
|
|
$admin = HouseAdminModel::get(['user_id'=>$user['id'],'house_id'=>$post['house_id'],'is_direct'=>1]);
|
|
|
empty($admin) && $this->error('您不是该小区的主管理员');
|
|
|
(new HouseAdminModel)->allowField(true)->save(array_merge([
|
...
|
...
|
|