公会后台登录修改 兼容 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

@@ -47,7 +47,9 @@ class Statistical extends GuildAdmin
$stime = input('stime', '');
$etime = input('etime', '');
$where = [];
$where['a.guild_id'] = $guild_id;
if($this->auth->id != 1) {
$where['a.guild_id'] = $guild_id;
}
if ($search_user_id) {
$user_id = db::name('user')->where('user_code', $search_user_id)->value('id');
$where['a.user_id'] = $user_id;
@@ -93,7 +95,9 @@ class Statistical extends GuildAdmin
$stime = input('stime', '');
$etime = input('etime', '');
$where = [];
$where['a.guild_id'] = $guild_id;
if($this->auth->id != 1) {
$where['a.guild_id'] = $guild_id;
}
if ($search_room_id) {
$where['b.room_number'] = $search_room_id;
}