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;