历史足迹
This commit is contained in:
@@ -480,14 +480,14 @@ class UserData extends Model
|
||||
->select();
|
||||
if($list){
|
||||
foreach($list as &$item){
|
||||
if($item['is_show_room'] == 2){ //是否显示房间 1是2否
|
||||
//查询当前房间是否有主持在麦上
|
||||
$room_host_info = db::name('vs_room_pit')->where(['room_id' => $item['room_id'], 'pit_number' => 9])->value('user_id');
|
||||
if($room_host_info == 0){
|
||||
unset($list[$item]);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// if($item['is_show_room'] == 2){ //是否显示房间 1是2否
|
||||
// //查询当前房间是否有主持在麦上
|
||||
// $room_host_info = db::name('vs_room_pit')->where(['room_id' => $item['room_id'], 'pit_number' => 9])->value('user_id');
|
||||
// if($room_host_info == 0){
|
||||
// unset($list[$item]);
|
||||
// continue;
|
||||
// }
|
||||
// }
|
||||
$item['label_icon'] = db::name('vs_room_label')->where('id',$item['label_id'])->value('label_icon');
|
||||
//获取房间用户总数
|
||||
$item['user_count'] = db::name('vs_room_visitor')->where('room_id',$item['room_id'])->count();
|
||||
|
||||
Reference in New Issue
Block a user