促销无法跳转打折
This commit is contained in:
parent
86f23c9dc0
commit
816416a4f9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue