巡乐会抽奖接口提交.-联调
This commit is contained in:
@@ -213,7 +213,9 @@ class BlindBox extends adminApi
|
|||||||
$data['is_world_show'] = $is_world_show;
|
$data['is_world_show'] = $is_world_show;
|
||||||
$data['weight'] = $weight;
|
$data['weight'] = $weight;
|
||||||
if(!empty($gift_id)){
|
if(!empty($gift_id)){
|
||||||
|
$gift = db::name('vs_gift')->where(['gid'=>$gift_id])->find();
|
||||||
$data['foreign_id'] = $gift_id;
|
$data['foreign_id'] = $gift_id;
|
||||||
|
$data['name'] = $gift['gift_name'];
|
||||||
}
|
}
|
||||||
$res = db::name($this->table)->where(['id'=>$id])->update($data);
|
$res = db::name($this->table)->where(['id'=>$id])->update($data);
|
||||||
if($res){
|
if($res){
|
||||||
|
|||||||
@@ -555,6 +555,9 @@ class BlindBoxTurntableGift extends Model
|
|||||||
}else{
|
}else{
|
||||||
$end_time = time() + ($ext['locking_time']['tow_no_locking_time']-$ext['locking_time']['next_time']) * 60;
|
$end_time = time() + ($ext['locking_time']['tow_no_locking_time']-$ext['locking_time']['next_time']) * 60;
|
||||||
}
|
}
|
||||||
|
if($pan_xlh_num>=6){
|
||||||
|
$end_time = time() + 30;
|
||||||
|
}
|
||||||
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