From 2768bc57c1dcdc33a12f2f3fbb73504aa4b9f3f5 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期六, 10 十一月 2018 15:05:54 +0800
Subject: [PATCH] 3335 代码优化

---
 System/MainInterfacePanel/FeatureNoticeModel.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/System/MainInterfacePanel/FeatureNoticeModel.cs b/System/MainInterfacePanel/FeatureNoticeModel.cs
index 8454ae7..217f866 100644
--- a/System/MainInterfacePanel/FeatureNoticeModel.cs
+++ b/System/MainInterfacePanel/FeatureNoticeModel.cs
@@ -361,11 +361,15 @@
         var mapConfig = Config.Instance.Get<MapConfig>(mapId);
         return mapConfig != null && mapConfig.MapFBType != 0;
     }
-
+    List<FunctionForecastConfig> functionForecastValue = new List<FunctionForecastConfig>();
     public int GetOpenLv(int Inedx)
     {
         int lv = 0;
-        var functionForecastValue = Config.Instance.GetAllValues<FunctionForecastConfig>();
+        if (functionForecastValue.Count <= 0)
+        {
+            functionForecastValue= Config.Instance.GetAllValues<FunctionForecastConfig>();
+        }
+       // var functionForecastValue = Config.Instance.GetAllValues<FunctionForecastConfig>();
         foreach (var value in functionForecastValue)
         {
             if (value.OpenNumber == Inedx)

--
Gitblit v1.8.0