修改 房间类型

This commit is contained in:
2025-12-03 13:05:57 +08:00
parent 1d2cb34dd0
commit 1ed607a1db

View File

@@ -1933,7 +1933,8 @@ class Room extends Model
//开启事务
db::startTrans();
$data = [];
if($type == 1 || $type == 3 || $type == 4 || $type == 8 || $type == 9){
//1-交友3、4、8-不要了
if($type == 1 || $type == 3 || $type == 4 || $type == 8){
$data = [
'label_id' => 1,
'type_id' => $type,
@@ -1941,6 +1942,7 @@ class Room extends Model
'is_song' => 1
];
}
//拍卖
if($type == 2){
$data = [
'label_id' => 3,
@@ -1949,7 +1951,7 @@ class Room extends Model
'is_song' => 1
];
}
//交友房(互娱)
//(互娱)
if($type == 7){
$data = [
'label_id' => 5,
@@ -1958,6 +1960,15 @@ class Room extends Model
];
}
//点唱房 (让别人唱歌)
if($type == 9){
$data = [
'label_id' => 6,
'type_id' => $type,
'room_up_pit_type' => 1,
];
}
//签约房
if($type == 10){
$data = [
'label_id' => 7,