From 816416a4f989359fbda2e8dba17261c1672f121a Mon Sep 17 00:00:00 2001 From: "xiaohui.wang" Date: Fri, 15 Apr 2022 16:54:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=83=E9=94=80=E6=97=A0=E6=B3=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=89=93=E6=8A=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemView.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemView.cs b/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemView.cs index 7e65ac77..7207995c 100644 --- a/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemView.cs +++ b/popcorn/Assets/MyGame/Scenes/shopping/Scripts/ShopItemView.cs @@ -43,12 +43,14 @@ public class ShopItemView : MonoBehaviour { m_shopData = shopData; long dateNowTime = GameDataManager.GetTimeStamp(DateTime.Now); + + DateTime dateTime = DateTime.Now; if (GameDataManager.sale >= dateNowTime&&(ShopItemType)shopData.consumeType== ShopItemType.Consumable) { nomalPrice = shopData.price>nomalPrice?shopData.price:nomalPrice; shopData.price = (int)(nomalPrice * 0.8f); } - else if (sale) + else if (sale|| dateTime.Hour == JoypacUtils.OnlineParametersIntByJoypacSDK(StaticOnlineParams.SaleTime1) || dateTime.Hour == JoypacUtils.OnlineParametersIntByJoypacSDK(StaticOnlineParams.SaleTime2)) { nomalPrice = shopData.price > nomalPrice ? shopData.price : nomalPrice; shopData.price = (int)(nomalPrice * 0.8f);