修改房间类型后清楚房间信息缓存

This commit is contained in:
2025-12-25 09:54:41 +08:00
parent 440ff3b11f
commit a45d928567
2 changed files with 5 additions and 1 deletions

View File

@@ -2745,7 +2745,6 @@ class Room extends Model
}
}
$data = [];
//1-交友3、4、8-不要了
if($type == 1 || $type == 3 || $type == 4 || $type == 8){
@@ -2756,6 +2755,7 @@ class Room extends Model
'is_song' => 1
];
}
//拍卖
if($type == 2){
$data = [
@@ -2765,6 +2765,7 @@ class Room extends Model
'is_song' => 1
];
}
//(互娱)
if($type == 7){
$data = [
@@ -2782,6 +2783,7 @@ class Room extends Model
'room_up_pit_type' => 1,
];
}
//签约房
if($type == 10){
$data = [
@@ -2843,6 +2845,7 @@ class Room extends Model
'text' => '房间类型已修改type--'.$type
];
model('Chat')->sendMsg(1012,$room_id,$text);
Cache::rm('room_info_'.$room_id);
return ['code' => 1, 'msg' => '修改成功', 'data' => null];
}

View File

@@ -140,6 +140,7 @@ class RoomSong extends Model
model('RoomPit')->DownPit($v['user_id'],$room_id,$v['pit_number']);
}
}
Cache::rm('room_info_'.$room_id);
//推送消息
$text = [
'text' => '房间类型变成k歌--2'