巡乐会抽奖接口提交.-联调-巡乐会结束数据逻辑调整
This commit is contained in:
@@ -553,13 +553,14 @@ class BlindBoxTurntableGift extends Model
|
|||||||
//中奖
|
//中奖
|
||||||
$pan_xlh_num = $pan_xlh['num']+1;
|
$pan_xlh_num = $pan_xlh['num']+1;
|
||||||
if($pan_xlh_num <= 1){
|
if($pan_xlh_num <= 1){
|
||||||
$end_time = time() + $ext['locking_time']['tow_no_locking_time'] * 60;
|
$add_end_time = $ext['locking_time']['tow_no_locking_time'] * 60;
|
||||||
}else{
|
}else{
|
||||||
$end_time = time() + ($ext['locking_time']['tow_no_locking_time']-$ext['locking_time']['next_time']) * 60;
|
$add_end_time = ($ext['locking_time']['tow_no_locking_time']-$ext['locking_time']['next_time']) * 60;
|
||||||
}
|
}
|
||||||
if($pan_xlh_num>=6){
|
if($add_end_time <= 30){
|
||||||
$end_time = time() + 30;
|
$add_end_time = 30;
|
||||||
}
|
}
|
||||||
|
$end_time = time() + $add_end_time;
|
||||||
db::name('vs_room_pan_xlh')->where('id',$pan_xlh['id'])->update([
|
db::name('vs_room_pan_xlh')->where('id',$pan_xlh['id'])->update([
|
||||||
'user_id' => $user_id,
|
'user_id' => $user_id,
|
||||||
'pay_price' =>$ext['xlh_box_price'],
|
'pay_price' =>$ext['xlh_box_price'],
|
||||||
|
|||||||
Reference in New Issue
Block a user