2 Commits

View File

@@ -414,8 +414,8 @@ class BlindBoxTurntableGift extends Model
//巡乐会主礼物
$xlh_main_gift = db::name('vs_gift')->where('gid',$xlh_ext['locking_condition']['locking_gift_id'])->find();
//中奖用户
$blind_box_turntable_periods = db::name('vs_room')->where('id',$room_id)->value('blind_box_turntable_periods');
$pan_xlh = db::name('vs_room_pan_xlh')->where(['room_id'=>$room_id,'periods'=>$blind_box_turntable_periods])->find();
$xlh_periods = db::name('vs_room')->where('id',$room_id)->value('xlh_periods');
$pan_xlh = db::name('vs_room_pan_xlh')->where(['room_id'=>$room_id,'periods'=>$xlh_periods])->find();
if(empty($pan_xlh)){
return ['code' => 0, 'msg' => '未开始', 'data' => null];
}