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

This commit is contained in:
2025-10-13 16:21:41 +08:00
parent f187eb9abc
commit 25fe6150ad

View File

@@ -983,13 +983,14 @@ class BlindBoxTurntableGiftDrawWorld extends Model
->field('id,room_name,is_open_blind_box_turntable,xlh_periods')
->where(['id' => $room_id])
->find();
if (!$room || $room['is_open_blind_box_turntable'] != 1) {
return ['code' => 0, 'msg' => '该房间未开启盲盒转盘', 'data' => null];
}
$bag_data = db::name("vs_gift_bag")
->field('id,name,ext,periods')
->where('id', $gift_bag_id)
->find();
// 3. 检查巡乐会状态
$pan_xlh = db::name('vs_room_pan_xlh')
->where(['room_id' => $room_id, 'periods' => $room['xlh_periods']])
->where(['periods' => $bag_data['periods'],"send_time"=>0])
->find();
if (empty($pan_xlh)) {
return ['code' => 0, 'msg' => '未开始', 'data' => null];