修改房间信息 缓存清除

This commit is contained in:
2025-12-29 20:40:04 +08:00
parent a2f11a319e
commit 479fd37014
2 changed files with 2 additions and 0 deletions

View File

@@ -182,6 +182,7 @@ class Room extends Model
];
//聊天室推送系统消息
model('Chat')->sendMsg(1020,$room_id,$text);
Cache::rm('room_info_'.$room_id);
return ['code' => 1, 'msg' => '修改成功', 'data' => null];
}

View File

@@ -1023,6 +1023,7 @@ class RoomPit extends Model
//推送消息给前端
$text['room_up_pit_type'] = $type;
model('Chat')->sendMsg(1014,$room_id,$text);
Cache::rm('room_info_'.$room_id);
return ['code' => 1, 'msg' => '操作成功', 'data' => null];
}