公会后台登录修改 兼容 admin

This commit is contained in:
2025-11-24 17:32:09 +08:00
parent 384355f52c
commit c3670ec2b0
6 changed files with 32 additions and 12 deletions

View File

@@ -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);