获取房间信息

This commit is contained in:
2025-10-25 11:57:03 +08:00
parent 910717464f
commit 5b2c655be8

View File

@@ -1815,7 +1815,7 @@ class Room extends Model
$user_in_room = db::name('vs_room_visitor')->where(['room_id' => $room_id,'user_id' => $user_id])->find();
if(!$user_in_room){
// return ['code' => 0, 'msg' => '您已不在此房间', 'data' => null];
return ['code' => 0, 'msg' => '', 'data' => null];
// return ['code' => 0, 'msg' => '', 'data' => null];
}
$room = db::name('vs_room')->where(['id' => $room_id])->find();
$song_list = null;