盲盒转盘优化-调试-加日志监控
This commit is contained in:
@@ -602,7 +602,6 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
||||
// 使用 FOR UPDATE 锁定记录
|
||||
$giftBagDetail = Db::name("vs_gift_bag_detail")
|
||||
->where('id', $giftId)
|
||||
->lock(true) // 添加悲观锁
|
||||
->find();
|
||||
if (!$giftBagDetail) {
|
||||
throw new \Exception("礼物详情不存在,ID: " . $giftId);
|
||||
|
||||
Reference in New Issue
Block a user