盲盒转盘优化-重构-调试
This commit is contained in:
@@ -706,7 +706,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
|||||||
throw new \Exception("礼物库存不足,ID: " . $giftId);
|
throw new \Exception("礼物库存不足,ID: " . $giftId);
|
||||||
}
|
}
|
||||||
$upRemainingNumber = $giftBagDetail['remaining_number'] - $count;
|
$upRemainingNumber = $giftBagDetail['remaining_number'] - $count;
|
||||||
if($giftBagDetail['remaining_number']!=$giftBagDetailCached['remaining_number']){
|
if($upRemainingNumber!=$giftBagDetailCached['remaining_number']){
|
||||||
$this->redis->setex( 'blind_box_draw_errors_' . date('Y-m-d-H-i-s'), 86400 * 7, "有并发:礼物数量不一致,礼物ID: " . $giftId . ' ' .json_encode($giftBagDetail) . ' ' .json_encode($giftBagDetailCached));
|
$this->redis->setex( 'blind_box_draw_errors_' . date('Y-m-d-H-i-s'), 86400 * 7, "有并发:礼物数量不一致,礼物ID: " . $giftId . ' ' .json_encode($giftBagDetail) . ' ' .json_encode($giftBagDetailCached));
|
||||||
$upRemainingNumber = $giftBagDetailCached['remaining_number'];
|
$upRemainingNumber = $giftBagDetailCached['remaining_number'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user