From a45d92856768c062ff1faf6dc4e3837272f46a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Thu, 25 Dec 2025 09:54:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=BF=E9=97=B4=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=90=8E=E6=B8=85=E6=A5=9A=E6=88=BF=E9=97=B4=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Room.php | 5 ++++- application/api/model/RoomSong.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/api/model/Room.php b/application/api/model/Room.php index 816a9c3f..f13226a2 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -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]; } diff --git a/application/api/model/RoomSong.php b/application/api/model/RoomSong.php index deb993e0..9e253073 100644 --- a/application/api/model/RoomSong.php +++ b/application/api/model/RoomSong.php @@ -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'