From 7e74b65bd0d3661c97cc26850d743a11c9631af7 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 13 九月 2018 17:35:03 +0800
Subject: [PATCH] 3442运营活动修改

---
 System/OpenServerActivity/FlashSaleWin.cs |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/System/OpenServerActivity/FlashSaleWin.cs b/System/OpenServerActivity/FlashSaleWin.cs
index 294c7bb..767f820 100644
--- a/System/OpenServerActivity/FlashSaleWin.cs
+++ b/System/OpenServerActivity/FlashSaleWin.cs
@@ -80,10 +80,9 @@
                 OperationFlashSale operation = operationBase as OperationFlashSale;
                 m_OpreationTime.text = StringUtility.Contact(Language.Get("ExpActivity_Text1"), operation.ToDisplayTime());
                 m_RefreshGiftTime.gameObject.SetActive(operation.allDay);
-                var index = operation.IndexOfFlashSale(TimeUtility.ServerNow);
-                if (index != -1 && index < operation.flashShops.Count)
+                OperationFlashSale.FlashSale flashSale;
+                if (operation.TryGetFlashSale(TimeUtility.ServerNow, out flashSale))
                 {
-                    var flashSale = operation.flashShops[index];
                     if (flashSale.gifts.Length > 0)
                     {
                         var moneyType = flashSale.gifts[0].moneyType;
@@ -95,7 +94,7 @@
                         if (i < flashSale.gifts.Length)
                         {
                             m_FlashSaleBehaviours[i].gameObject.SetActive(true);
-                            m_FlashSaleBehaviours[i].Display(index, flashSale.gifts[i].id);
+                            m_FlashSaleBehaviours[i].Display(flashSale.gifts[i]);
                         }
                         else
                         {

--
Gitblit v1.8.0