拍卖中不能下麦
This commit is contained in:
@@ -182,6 +182,16 @@ class RoomPit extends Model
|
|||||||
}else{
|
}else{
|
||||||
$pit_text = $pit_number . '号麦';
|
$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;
|
$where['room_id'] = $room_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user