From 92a147c14c6639e9e85c663a6883ede4b9d8015f Mon Sep 17 00:00:00 2001 From: Fang Date: Wed, 9 Aug 2023 10:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E5=A4=87=E7=A4=BC=E5=8C=85=E5=BC=B9?= =?UTF-8?q?=E5=87=BAfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/shop/shop_data.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/app/userdata/shop/shop_data.lua b/lua/app/userdata/shop/shop_data.lua index ade52d52..816fef43 100644 --- a/lua/app/userdata/shop/shop_data.lua +++ b/lua/app/userdata/shop/shop_data.lua @@ -844,10 +844,11 @@ function ShopData:initGift(giftType, gift, isInit) end local tempId = self.gifts[giftType] and self.gifts[giftType].id or 0 + local tempTrigerTime = self.gifts[giftType] and self.gifts[giftType].triggerTime or 0 self.gifts[giftType] = giftStruct if not isInit and self:hasGift(giftType) then - if tempId == self.gifts[giftType].id then + if tempId == self.gifts[giftType].id and tempTrigerTime == self.gifts[giftType].triggerTime then if EDITOR_MODE then Logger.logHighlight("重复礼包数据,不处理弹窗:" .. tempId) end