盲盒转盘优化-调试-加日志监控

This commit is contained in:
2025-10-25 11:03:37 +08:00
parent 8ad606a8dd
commit bad85524ef

View File

@@ -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);