巡乐会抽奖接口提交.-调试

This commit is contained in:
2025-08-30 17:25:09 +08:00
parent fca08e4a3e
commit 3e9be6c305

View File

@@ -279,6 +279,7 @@ class BlindBoxTurntableGift extends Model
$xlh_box = db::name('vs_gift_bag')->where('id',13)->find(); $xlh_box = db::name('vs_gift_bag')->where('id',13)->find();
$xlh_ext = json_decode($xlh_box['ext'],true); $xlh_ext = json_decode($xlh_box['ext'],true);
if($xlh_ext['inlet_bag_id'] == $gift_bag_id){ if($xlh_ext['inlet_bag_id'] == $gift_bag_id){
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods_num');//加巡乐会条件次数
$room = Db::name('vs_room')->field('room_name,blind_box_turntable_periods,xlh_periods,xlh_periods_num')->where(['id' => $room_id, 'apply_status' => 2])->find(); $room = Db::name('vs_room')->field('room_name,blind_box_turntable_periods,xlh_periods,xlh_periods_num')->where(['id' => $room_id, 'apply_status' => 2])->find();
if($room['xlh_periods_num'] == $xlh_ext['open_condition']['waiting_start_num']){ if($room['xlh_periods_num'] == $xlh_ext['open_condition']['waiting_start_num']){
$room_name = Db::name('vs_room')->where(['id' => $room_id, 'apply_status' => 2])->value('room_name'); $room_name = Db::name('vs_room')->where(['id' => $room_id, 'apply_status' => 2])->value('room_name');
@@ -316,9 +317,8 @@ class BlindBoxTurntableGift extends Model
if(!$pan_xlh_id){ if(!$pan_xlh_id){
return ['code' => 0, 'msg' => '失败!', 'data' => []]; return ['code' => 0, 'msg' => '失败!', 'data' => []];
} }
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods'); db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods');//修给巡乐会期数
} }
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods_num');
} }
$result_data = [ $result_data = [
'user_id' => $user_id, 'user_id' => $user_id,