新需求-活动需求-盲盒转盘调通盘-调试
This commit is contained in:
@@ -762,7 +762,7 @@ class BlindBoxTurntableGiftDrawWorld 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_gift_bag")->where('id',13)->setInc('periods');//修改巡乐会期数
|
||||
}
|
||||
}
|
||||
private function updateAndPushXlhStatus($room_id, $xlh_ext, $currentXlhPeriodsNum){
|
||||
@@ -990,7 +990,7 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
||||
|
||||
// 3. 检查巡乐会状态
|
||||
$pan_xlh = db::name('vs_room_pan_xlh')
|
||||
->where(['periods' => $bag_data['periods'],"send_time"=>0])
|
||||
->where(['periods' => $bag_data['periods']])
|
||||
->find();
|
||||
if (empty($pan_xlh)) {
|
||||
return ['code' => 0, 'msg' => '未开始', 'data' => null];
|
||||
@@ -1155,6 +1155,7 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
||||
$last_update = end($main_prize_updates);
|
||||
db::name('vs_room_pan_xlh')->where('id', $pan_xlh['id'])->update([
|
||||
'user_id' => $last_update['user_id'],
|
||||
'room_id' => $room_id,
|
||||
'pay_price' => $ext['xlh_box_price'],
|
||||
'locking_gift_id' => $last_update['gift_id'],
|
||||
'num' => $last_update['num'],
|
||||
@@ -1165,6 +1166,7 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
||||
db::name('vs_room_pan_xlh_log')->insert([
|
||||
'xlh_id' => $pan_xlh['id'],
|
||||
'user_id' => $last_update['user_id'],
|
||||
'room_id' => $room_id,
|
||||
'num' => $last_update['num'],
|
||||
'locking_end_time' => $last_update['end_time'],
|
||||
'createtime' => time()
|
||||
|
||||
Reference in New Issue
Block a user