不在房间内 消息隐藏

This commit is contained in:
2025-09-18 18:18:16 +08:00
parent 663e927b12
commit 10044688e7

View File

@@ -1918,7 +1918,8 @@ 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;