房间用户列表

This commit is contained in:
2025-12-09 17:35:21 +08:00
parent 27ab27296f
commit 9a316a2699

View File

@@ -1806,11 +1806,6 @@ class Room extends Model
return ['code' => 0, 'msg' => '参数错误'];
}
$roomType = db::name('vs_room')->where(['id' => $room_id])->field('type_id,label_id')->find();
if (!$roomType) {
return ['code' => 0, 'msg' => '房间不存在'];
}
$lists['on_pit'] = [];
$lists['off_pit'] = [];
$lists['count'] = db::name('vs_room_visitor')->where(['room_id' => $room_id])->count();
@@ -1821,7 +1816,7 @@ class Room extends Model
}
$list = db::name('vs_room_visitor')->alias('a')
->join('user b', 'a.user_id = b.id')
->join('user b', 'a.user_id = b.id','left')
->field('a.user_id,b.nickname,b.avatar,b.hide_status,a.is_onpit')
->where($where)
->order('a.is_onpit asc')