diff --git a/application/api/model/Room.php b/application/api/model/Room.php index ff3aaab..31e7814 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -1709,13 +1709,19 @@ class Room extends Model //申请上麦的全部下麦 model('RoomPit')->clear_apply_pit_list($uid, $room_id); - if($type == 1 || $type == 3 || $type == 4 || $type == 7){ + if($type == 1 || $type == 3 || $type == 4 || $type == 7 || $type == 8){ //查询拍卖房的状态 $room_auction = db::name('vs_room_auction')->where(['room_id' => $room_id,'status' => 2])->select(); if($room_auction){ foreach ($room_auction as $v){ model('RoomAuction')->room_auction_end($room_id,$v['auction_id']); } + //拍卖位上是否有人 + $an = Cache::get('auction_user_'.$room_id); + if($an){ + //拍卖位下麦 + model('api/RoomPit')->host_user_pit($uid,$room_id,888,$an,2); + } } } if($type == 2){