新需求-活动需求-盲盒转盘调通盘-调试
This commit is contained in:
@@ -983,13 +983,14 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
|||||||
->field('id,room_name,is_open_blind_box_turntable,xlh_periods')
|
->field('id,room_name,is_open_blind_box_turntable,xlh_periods')
|
||||||
->where(['id' => $room_id])
|
->where(['id' => $room_id])
|
||||||
->find();
|
->find();
|
||||||
if (!$room || $room['is_open_blind_box_turntable'] != 1) {
|
$bag_data = db::name("vs_gift_bag")
|
||||||
return ['code' => 0, 'msg' => '该房间未开启盲盒转盘', 'data' => null];
|
->field('id,name,ext,periods')
|
||||||
}
|
->where('id', $gift_bag_id)
|
||||||
|
->find();
|
||||||
|
|
||||||
// 3. 检查巡乐会状态
|
// 3. 检查巡乐会状态
|
||||||
$pan_xlh = db::name('vs_room_pan_xlh')
|
$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();
|
->find();
|
||||||
if (empty($pan_xlh)) {
|
if (empty($pan_xlh)) {
|
||||||
return ['code' => 0, 'msg' => '未开始', 'data' => null];
|
return ['code' => 0, 'msg' => '未开始', 'data' => null];
|
||||||
|
|||||||
Reference in New Issue
Block a user