From 8312bff00f0742e1014a77c06fb52cee33b5740f Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 17 九月 2018 16:19:44 +0800
Subject: [PATCH] 3618【前端】双倍经验活动红点逻辑修改

---
 System/Welfare/MultipleExpModel.cs |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/System/Welfare/MultipleExpModel.cs b/System/Welfare/MultipleExpModel.cs
index 7d67a9c..31f5122 100644
--- a/System/Welfare/MultipleExpModel.cs
+++ b/System/Welfare/MultipleExpModel.cs
@@ -152,10 +152,36 @@
             return operation != null && operation.SatisfyOpenCondition() && operation.InDay(TimeUtility.ServerNow);
         }
 
+        bool LastDayOutTime()
+        {
+            OperationBase operation;
+            if (OperationTimeHepler.Instance.TryGetOperationTime(Operation.MultipleExp, out operation))
+            {
+                if (operation.allDay)
+                {
+                    return false;
+                }
+                if (operation.IsLastDay)
+                {
+                    bool outTime = true;
+                    for (int i = 0; i < operation.times.Count; i++)
+                    {
+                        if (operation.times[i].CompareTime(TimeUtility.ServerNow) != 1)
+                        {
+                            outTime = false;
+                            break;
+                        }
+                    }
+                    return outTime;
+                }
+            }
+            return false;
+        }
+
         private void UpdateRedpoint()
         {
             multipleExpRedpoint.state = RedPointState.None;
-            if (todayRemind || !Open())
+            if (todayRemind || !Open() || LastDayOutTime())
             {
                 multipleExpRedpoint.state = RedPointState.None;
                 return;

--
Gitblit v1.8.0