公会后台登录修改 兼容 admin
This commit is contained in:
@@ -532,10 +532,14 @@ class Admin extends GuildAdmin
|
||||
$adminGroupName[$this->auth->id][$n['id']] = $n['name'];
|
||||
}
|
||||
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
||||
$guild_where = [];
|
||||
if($this->auth->id != 1){
|
||||
$guild_where['guild_id'] = $this->guildId;
|
||||
$guild_where['id'] = ['in', $this->childrenAdminIds];
|
||||
}
|
||||
$list = $this->model
|
||||
->where($where)
|
||||
->where('guild_id', $this->guildId)
|
||||
->where('id', 'in', $this->childrenAdminIds)
|
||||
->where($guild_where)
|
||||
->field(['password', 'salt', 'token'], true)
|
||||
->order($sort, $order)
|
||||
->paginate($limit);
|
||||
|
||||
Reference in New Issue
Block a user