修改房间类型后清楚房间信息缓存
This commit is contained in:
@@ -2745,7 +2745,6 @@ class Room extends Model
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
//1-交友,3、4、8-不要了
|
//1-交友,3、4、8-不要了
|
||||||
if($type == 1 || $type == 3 || $type == 4 || $type == 8){
|
if($type == 1 || $type == 3 || $type == 4 || $type == 8){
|
||||||
@@ -2756,6 +2755,7 @@ class Room extends Model
|
|||||||
'is_song' => 1
|
'is_song' => 1
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
//拍卖
|
//拍卖
|
||||||
if($type == 2){
|
if($type == 2){
|
||||||
$data = [
|
$data = [
|
||||||
@@ -2765,6 +2765,7 @@ class Room extends Model
|
|||||||
'is_song' => 1
|
'is_song' => 1
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
//(互娱)
|
//(互娱)
|
||||||
if($type == 7){
|
if($type == 7){
|
||||||
$data = [
|
$data = [
|
||||||
@@ -2782,6 +2783,7 @@ class Room extends Model
|
|||||||
'room_up_pit_type' => 1,
|
'room_up_pit_type' => 1,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
//签约房
|
//签约房
|
||||||
if($type == 10){
|
if($type == 10){
|
||||||
$data = [
|
$data = [
|
||||||
@@ -2843,6 +2845,7 @@ class Room extends Model
|
|||||||
'text' => '房间类型已修改type--'.$type
|
'text' => '房间类型已修改type--'.$type
|
||||||
];
|
];
|
||||||
model('Chat')->sendMsg(1012,$room_id,$text);
|
model('Chat')->sendMsg(1012,$room_id,$text);
|
||||||
|
Cache::rm('room_info_'.$room_id);
|
||||||
|
|
||||||
return ['code' => 1, 'msg' => '修改成功', 'data' => null];
|
return ['code' => 1, 'msg' => '修改成功', 'data' => null];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ class RoomSong extends Model
|
|||||||
model('RoomPit')->DownPit($v['user_id'],$room_id,$v['pit_number']);
|
model('RoomPit')->DownPit($v['user_id'],$room_id,$v['pit_number']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Cache::rm('room_info_'.$room_id);
|
||||||
//推送消息
|
//推送消息
|
||||||
$text = [
|
$text = [
|
||||||
'text' => '房间类型变成k歌--2'
|
'text' => '房间类型变成k歌--2'
|
||||||
|
|||||||
Reference in New Issue
Block a user