diff --git a/lua/app/userdata/shop/shop_data.lua b/lua/app/userdata/shop/shop_data.lua index c6da37be..c6a075d1 100644 --- a/lua/app/userdata/shop/shop_data.lua +++ b/lua/app/userdata/shop/shop_data.lua @@ -371,7 +371,7 @@ function ShopData:initLevelUpGift(levelUpGift) self.levelUpGifts = levelUpGift.gifts or {} -- [{trigger_level,current_level_up_gift,trigger_at}] -- 金币礼包部分会一直保留 self:initCoinGift(levelUpGift.gold_gift_id, levelUpGift.gold_gift_trigger_at) - self.data.currentPayAmount = levelUpGift.current_pay_amount -- 已经计算过降档的付费数额 + self.data.currentPayAmount = levelUpGift.current_pay_amount or 0 -- 已经计算过降档的付费数额 self:setDirty() end