点唱房

This commit is contained in:
2025-11-12 17:10:17 +08:00
parent 3aef38f4fc
commit 2de7412550
6 changed files with 219 additions and 5 deletions

View File

@@ -1729,6 +1729,7 @@ class Room extends Model
//修改房间类型
// $type 1-聊天,2-拍卖7-互娱8-交友9-点唱
public function change_room_type($uid,$room_id,$type)
{
if(!$uid || !$room_id || !$type){
@@ -1759,7 +1760,7 @@ class Room extends Model
//开启事务
db::startTrans();
$data = [];
if($type == 1 || $type == 3 || $type == 4 || $type == 8){
if($type == 1 || $type == 3 || $type == 4 || $type == 8 || $type == 9){
$data = [
'label_id' => 1,
'type_id' => $type,
@@ -1809,7 +1810,7 @@ class Room extends Model
//申请上麦的全部下麦
model('RoomPit')->clear_apply_pit_list($uid, $room_id);
if($type == 1 || $type == 3 || $type == 4 || $type == 7 || $type == 8){
if($type == 1 || $type == 3 || $type == 4 || $type == 7 || $type == 8 || $type == 9){
//查询拍卖房的状态
$room_auction = db::name('vs_room_auction')->where(['room_id' => $room_id,'status' => 2])->select();
if($room_auction){
@@ -1847,7 +1848,7 @@ class Room extends Model
if($room_user){
foreach ($room_user as $v){
if(Db::name('user')->where('id', $v['user_id'])->value('is_online') == 0){
model('Room')->quit_room($v['user_id'], $room_id,$v['user_id'],2);
// model('Room')->quit_room($v['user_id'], $room_id,$v['user_id'],2);
}
}
}