diff --git a/application/api/model/RoomPit.php b/application/api/model/RoomPit.php index 8b0e100c..21c4655d 100644 --- a/application/api/model/RoomPit.php +++ b/application/api/model/RoomPit.php @@ -1052,7 +1052,7 @@ class RoomPit extends Model return ['code' => 0, 'msg' => '互娱房 不能上7、8号麦位', 'data' => null]; } $room_label = db::name('vs_room')->where(['id' => $room_id])->value('label_id'); - if($room_type == 1 && $room_label == 2){ + if($room_type == 1 && $room_label == 2 && !$pit_number){ $res = model('RoomPit')->agree_pit($user_id, $room_id, $accept_user_id,1); if($res['code'] == 0){ return ['code' => 0, 'msg' => $res['msg'], 'data' => null];