From dec58f7ce4b049dbe467c23fed2de333e75618f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Sat, 30 Aug 2025 10:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E5=8F=8B=E6=88=BF=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=20=E6=88=BF=E4=B8=BB=E6=8A=B1=E4=B8=BB=E6=8C=81=E4=B8=8B?= =?UTF-8?q?=E9=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/RoomPit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/model/RoomPit.php b/application/api/model/RoomPit.php index 0e8bc52..7118247 100644 --- a/application/api/model/RoomPit.php +++ b/application/api/model/RoomPit.php @@ -127,7 +127,7 @@ class RoomPit extends Model return ['code' => 0, 'msg' => '当前房间正在pk中', 'data' => null]; } $step = db::name('vs_room')->where(['id' => $room_id, 'type_id' => 7])->value('step'); - if($step && $step != 1 && $pit_number <= 9){ + if($step && $step != 1 && $pit_number < 9){ return ['code' => 0, 'msg' => '交友房 此阶段不可操作', 'data' => null]; } $FromUserInfo = db::name('user')->where('id',$user_id)->field('id as user_id,nickname,avatar,sex')->find(); @@ -907,7 +907,7 @@ class RoomPit extends Model } }else{ $step = db::name('vs_room')->where(['id' => $room_id, 'type_id' => 7])->value('step'); - if($step && $step != 1){ + if($step && $step != 1 && $pit_number != 9){ return ['code' => 0, 'msg' => '交友房 此阶段不可操作', 'data' => null]; } $where['room_id'] = $room_id;