From 05f41439577447b5da9785ef5f1da56368c71b9f Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期一, 15 十月 2018 16:42:11 +0800
Subject: [PATCH] 4074 【前端】限时抢购开发
---
System/OpenServerActivity/FlashSaleTimeCell.cs | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/System/OpenServerActivity/FlashSaleTimeCell.cs b/System/OpenServerActivity/FlashSaleTimeCell.cs
index 17df1e0..837e2fe 100644
--- a/System/OpenServerActivity/FlashSaleTimeCell.cs
+++ b/System/OpenServerActivity/FlashSaleTimeCell.cs
@@ -38,9 +38,8 @@
timeIndex = -1;
if (operation == null) return;
- int days = operation.totalDays + 1;
- dayIndex = cell.index/(operation.flashShops.Count / days);
- timeIndex = cell.index % (operation.flashShops.Count / days);
+ dayIndex = cell.index/100;
+ timeIndex = cell.index % 100;
if(dayIndex == rushToBuyModel.presentFlashShop.dayIndex
&& timeIndex == rushToBuyModel.presentFlashShop.timeIndex)
{
@@ -75,11 +74,7 @@
remainText.text = StringUtility.Contact("绉掓潃杩涜涓�", TimeUtility.SecondsToHMS(seconds));
break;
case 1:
- if(selectImg.activeInHierarchy)
- {
- rushToBuyModel.SetDefaultSelectSaleTime();
- }
- this.gameObject.SetActive(false);
+ rushToBuyModel.PresentFlashShopActivityClose();
break;
}
}
--
Gitblit v1.8.0