bug修改 盲盒转盘礼物重复推送
This commit is contained in:
@@ -869,7 +869,7 @@ class BlindBoxTurntableGift extends Model
|
||||
if(empty($room_pan)){
|
||||
return ['code' => 0, 'msg' => '当前房间未配置抽奖礼物,请联系管理员', 'data' => []];
|
||||
}
|
||||
$total_remaining = $room_pan['remaining_number'];
|
||||
$total_remaining = db::name("vs_room_pan")->where(['room_id'=>$room_id,'gift_bag_id'=>$gift_bag_id])->sum('remaining_number');
|
||||
$total_draw_times = $total_quantity - $total_remaining;
|
||||
//随机获取一个礼物
|
||||
$where = [
|
||||
|
||||
Reference in New Issue
Block a user