diff --git a/lua/app/userdata/shop/shop_data.lua b/lua/app/userdata/shop/shop_data.lua index b2b03192..6a5655dc 100644 --- a/lua/app/userdata/shop/shop_data.lua +++ b/lua/app/userdata/shop/shop_data.lua @@ -858,7 +858,7 @@ function ShopData:checkShopDiscountRedPoint() return end local actIds = self:getActChapterStoreCanBuyActIds() - if actIds and #actIds >= 0 then + if actIds and #actIds > 0 then self.shopDiscountRedPoint = true return end @@ -867,12 +867,12 @@ function ShopData:checkShopDiscountRedPoint() return end actIds = self:getLevelUpGiftActIds() - if actIds and #actIds >= 0 then + if actIds and #actIds > 0 then self.shopDiscountRedPoint = true return end actIds = self:getValidGrowUpGifts() - if actIds and #actIds >= 0 then + if actIds and #actIds > 0 then self.shopDiscountRedPoint = true return end