From aecb6a5a62d8a4cfc7b924ce957a9c7ea90c235d Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 19 九月 2018 15:58:14 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/MainInterfacePanel/FeatureNoticeModel.cs |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/System/MainInterfacePanel/FeatureNoticeModel.cs b/System/MainInterfacePanel/FeatureNoticeModel.cs
index 5505a36..e2b91db 100644
--- a/System/MainInterfacePanel/FeatureNoticeModel.cs
+++ b/System/MainInterfacePanel/FeatureNoticeModel.cs
@@ -280,6 +280,20 @@
         return mapConfig != null && mapConfig.MapFBType != 0;
     }
 
+    public int GetOpenLv(int Inedx)
+    {
+        int lv = 0;
+        var functionForecastValue = Config.Instance.GetAllValues<FunctionForecastConfig>();
+        foreach (var value in functionForecastValue)
+        {
+            if (value.OpenNumber == Inedx)
+            {
+                lv = value.DisplayLevel;
+                return lv;
+            }
+        }     
+        return lv;
+    }
    
 }
 

--
Gitblit v1.8.0