房间类型
This commit is contained in:
@@ -33,9 +33,9 @@ class RoomPit extends BaseCom
|
|||||||
$room_label = $res['data']['label_id'];
|
$room_label = $res['data']['label_id'];
|
||||||
$room_type = $res['data']['type_id'];
|
$room_type = $res['data']['type_id'];
|
||||||
|
|
||||||
if(($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4))|| $room_type == 2 || $room_type == 7){
|
if(($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8))|| $room_type == 2 || $room_type == 7){
|
||||||
$reslut = model('RoomPit')->apply_pit($this->uid, $room_id,$pit_number);
|
$reslut = model('RoomPit')->apply_pit($this->uid, $room_id,$pit_number);
|
||||||
}elseif ($room_label == 2 && ($room_type == 1 || $room_type == 3 || $room_type == 4)){
|
}elseif ($room_label == 2 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)){
|
||||||
$reslut = model('RoomSong')->apply_kpit($this->uid, $room_id,$pit_number);
|
$reslut = model('RoomSong')->apply_kpit($this->uid, $room_id,$pit_number);
|
||||||
}else{
|
}else{
|
||||||
return V(0, '房间不存在', null);
|
return V(0, '房间不存在', null);
|
||||||
@@ -113,9 +113,9 @@ class RoomPit extends BaseCom
|
|||||||
}
|
}
|
||||||
$room_label = $res['data']['label_id'];
|
$room_label = $res['data']['label_id'];
|
||||||
$room_type = $res['data']['type_id'];
|
$room_type = $res['data']['type_id'];
|
||||||
if(($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4)) || $room_type == 2 || $room_type == 7){
|
if(($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)) || $room_type == 2 || $room_type == 7){
|
||||||
$reslut = model('RoomPit')->DownPit($this->uid, $room_id,$pit_number);
|
$reslut = model('RoomPit')->DownPit($this->uid, $room_id,$pit_number);
|
||||||
}elseif ($room_label == 2 && ($room_type == 1 || $room_type == 3 || $room_type == 4)){
|
}elseif ($room_label == 2 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)){
|
||||||
$reslut = model('RoomSong')->down_kpit($this->uid, $room_id);
|
$reslut = model('RoomSong')->down_kpit($this->uid, $room_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user