巡乐会抽奖接口提交.-调试
This commit is contained in:
@@ -279,6 +279,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){
|
||||
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();
|
||||
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');
|
||||
@@ -316,9 +317,8 @@ class BlindBoxTurntableGift extends Model
|
||||
if(!$pan_xlh_id){
|
||||
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 = [
|
||||
'user_id' => $user_id,
|
||||
|
||||
Reference in New Issue
Block a user