盲盒转盘优化-重构-调试
This commit is contained in:
@@ -710,6 +710,9 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
||||
if ($upRemainingNumber < 0) {
|
||||
throw new \Exception("礼物库存不足,ID: " . $giftId);
|
||||
}
|
||||
if($upRemainingNumber = $giftBagDetail['remaining_number']){
|
||||
return;
|
||||
}
|
||||
$ret = db::name("vs_gift_bag_detail")->where('id',$giftId)->update([
|
||||
'remaining_number' => $upRemainingNumber
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user