新需求-活动需求-盲盒转盘调通盘

This commit is contained in:
2025-10-13 14:10:54 +08:00
parent 9c0cd48425
commit 7efdf519ce

View File

@@ -45,12 +45,13 @@ class BlindBoxTurntableGift extends Model
$xlh_ext = json_decode($xlh_box['ext'],true);
$xlh = [];
if($xlh_ext['inlet_bag_id'] == $box['id']){
$room = db::name('vs_room')->field('id,xlh_periods,xlh_periods_num')->where(['id'=>$room_id])->find();
// $room = db::name('vs_room')->field('id,xlh_periods,xlh_periods_num')->where(['id'=>$room_id])->find();
$is_xlh = 1;
$xlh['waiting_start_num'] = $xlh_ext['open_condition']['waiting_start_num'];//等待开奖次数
$xlh['start_num'] = $xlh_ext['open_condition']['start_num'];//开始开奖次数
//当前抽奖次数
$xlh['current_num'] = $room['xlh_periods_num'];
// $xlh['current_num'] = $room['xlh_periods_num'];
$xlh['current_num'] = Cache::get("xlh_periods_num") ?? 0;
//状态
if($xlh['current_num'] >= $xlh_ext['open_condition']['start_num']){
$xlh['status'] = 1;//状态 1:巡乐会开始 2:即将开始开始 0:等待开始