删除申请上麦
This commit is contained in:
@@ -512,7 +512,7 @@ class RoomPit extends Model
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//删除他的申请上麦
|
//删除他的申请上麦
|
||||||
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $value, 'room_id' => $room_id, 'status' => 0,'apply_type' => 1])->delete();
|
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $value, 'room_id' => $room_id, 'status' => 0])->delete();
|
||||||
if (!$reslut) {
|
if (!$reslut) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -542,7 +542,7 @@ class RoomPit extends Model
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//删除他的申请上麦
|
//删除他的申请上麦
|
||||||
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $value, 'room_id' => $room_id, 'status' => 0,'apply_type' => 2])->delete();
|
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $value, 'room_id' => $room_id, 'status' => 0])->delete();
|
||||||
if (!$reslut) {
|
if (!$reslut) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -641,7 +641,7 @@ class RoomPit extends Model
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//删除他的申请上麦
|
//删除他的申请上麦
|
||||||
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $value, 'room_id' => $room_id, 'status' => 0,'apply_type' => 1])->delete();
|
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $value, 'room_id' => $room_id, 'status' => 0])->delete();
|
||||||
if (!$reslut) {
|
if (!$reslut) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user