From cd0f34f5eee9091cfa2895f468ce6df7628dbbac Mon Sep 17 00:00:00 2001 From: chenxi Date: Fri, 9 Jun 2023 15:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=BA=97=E9=A1=B5=E7=AD=BE=E7=BA=A2?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/shop/shop_data.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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