From a732eaa2d554d7d6df72c66c1793f149219c3df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Thu, 4 Dec 2025 21:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=8D=E5=8D=96=E4=B8=AD=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=B8=8B=E9=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/RoomPit.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/application/api/model/RoomPit.php b/application/api/model/RoomPit.php index 22f8934..b209326 100644 --- a/application/api/model/RoomPit.php +++ b/application/api/model/RoomPit.php @@ -182,6 +182,16 @@ class RoomPit extends Model }else{ $pit_text = $pit_number . '号麦'; } + if($roomtype == 2){ + //获取拍卖位用户 + if(Cache::get('auction_user_'.$room_id) == $user_id){ + $auctioning = db::name('vs_room_auction') + ->where(['room_id' => $room_id, 'status' => 2, 'user_id' => $user_id])->find(); + if($auctioning) { + return ['code' => 0, 'msg' => '拍卖中不能能下麦', 'data' => null]; + } + } + } } $where['room_id'] = $room_id;