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

This commit is contained in:
2025-08-30 12:04:33 +08:00
parent e69ed8063c
commit 7c52834986

View File

@@ -260,7 +260,7 @@ class BlindBoxTurntableGift extends Model
$xlh_box = db::name('vs_gift_bag')->where('id',13)->find();
$xlh_ext = json_decode($xlh_box['ext'],true);
if($xlh_ext['inlet_bag_id'] == $gift_bag_id){
$room = Db::name('vs_room')->field('room_name,blind_box_turntable_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']){
$room_name = Db::name('vs_room')->where(['id' => $room_id, 'apply_status' => 2])->value('room_name');
//即将开始推送飘屏
@@ -298,10 +298,8 @@ class BlindBoxTurntableGift extends Model
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_num');
}else{
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods_num');
}
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods_num');
}
$result_data = [
'user_id' => $user_id,