进入房间

This commit is contained in:
2026-01-26 11:08:47 +08:00
parent 6af3558660
commit 4974ea58b9

View File

@@ -958,7 +958,7 @@ class Room extends Model
return ['code' => 202, 'msg' => '您已经在房间'.$room_names.'中,请先下麦后并退出房间', 'data' => ['room_id' => $room_pit,'msg'=>'您在'.$room_names .'房间游戏中,不支持进入新房间']];
}
if($room['room_password'] != ''){
if($room['room_password'] != '' && $user_id != $room['user_id']){
return ['code' => 101, 'msg' => '密码房', 'data' => ''];
}