房间信息

This commit is contained in:
2025-10-28 10:22:14 +08:00
parent 5df6ffa870
commit 1eeeeb1c7c

View File

@@ -1813,10 +1813,10 @@ class Room extends Model
return ['code' => 0, 'msg' => '参数错误', 'data' => null]; return ['code' => 0, 'msg' => '参数错误', 'data' => null];
} }
$user_in_room = db::name('vs_room_visitor')->where(['room_id' => $room_id,'user_id' => $user_id])->find(); $user_in_room = db::name('vs_room_visitor')->where(['room_id' => $room_id,'user_id' => $user_id])->find();
if(!$user_in_room){ // if(!$user_in_room){
// return ['code' => 0, 'msg' => '您已不在此房间', 'data' => null]; //// 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(); $room = db::name('vs_room')->where(['id' => $room_id])->find();
$song_list = null; $song_list = null;
$next_song_info = null; $next_song_info = null;