点唱房
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user