From df06595007bb14730af0e70aaa485c7fe2abf1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Fri, 2 Jan 2026 15:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E4=B9=90=E4=BC=9Abug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/BlindBoxTurntableGiftDrawWorldNew.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php index 32f4f806..e7549f10 100644 --- a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php +++ b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php @@ -874,8 +874,10 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model $giftCounts = []; foreach ($precomputedResults as $result) { $giftId = $result['gift_bag_detail']['foreign_id']; - if (!isset($giftCounts[$giftId])) { - $giftCounts[$giftId] = [ + $gift_user_id = $result['gift_user_id']; + $key = $giftId.'_'.$gift_user_id; + if (!isset($giftCounts[$key])) { + $giftCounts[$key] = [ 'gift_user_id' => $result['gift_user_id'], 'gift_id' => $giftId, 'count' => 0,