盲盒期数修改。
This commit is contained in:
@@ -1422,6 +1422,12 @@ class SendGift extends Model
|
||||
}
|
||||
|
||||
}
|
||||
//关禁闭----限制某个房间抽奖只能抽盘里数量最多的礼物--------
|
||||
$gift_bag_details = db::name("vs_gift_bag_detail")->where([ 'gift_bag_id' => $gift_bag_id,'remaining_number' => ['>',0]])->order('remaining_number', 'desc')->find();
|
||||
if($gift_bag_details && in_array($room_id,[49])){
|
||||
$gift_bag_detail = $gift_bag_details;
|
||||
}
|
||||
//关禁闭---------------------------------------------
|
||||
if($gift_bag_detail){
|
||||
//获取开出礼物的信息
|
||||
$gift = db::name("vs_gift")->where(['gid'=>$gift_bag_detail['foreign_id']])->find();
|
||||
|
||||
Reference in New Issue
Block a user