From 3ea9edc13df124b2d64bc35dbb93adafb9509575 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期六, 10 十一月 2018 15:19:25 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/MainInterfacePanel/StoryTask.cs |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/System/MainInterfacePanel/StoryTask.cs b/System/MainInterfacePanel/StoryTask.cs
index e72abfd..1a62b71 100644
--- a/System/MainInterfacePanel/StoryTask.cs
+++ b/System/MainInterfacePanel/StoryTask.cs
@@ -303,10 +303,14 @@
                 _Text_TaskTarget.SetReplaceInfo(_DicTaskInforma[_Taskid]);
             }
         }
-
+        List<TaskListConfig> configs = new List<TaskListConfig>();
         void SaveChapter()//鑾峰彇涓荤嚎浠诲姟绔犺妭
         {
-            var configs = Config.Instance.GetAllValues<TaskListConfig>();
+            if (configs.Count <= 0)
+            {
+                configs = Config.Instance.GetAllValues<TaskListConfig>();
+            }
+           // var configs = Config.Instance.GetAllValues<TaskListConfig>();
             foreach (var value in configs)
             {
                 if (!chapterDic.ContainsKey(value.ChapterID))
@@ -335,7 +339,11 @@
         private void ListTask(int ChapterID)
         {
             listTask.Clear();
-            var configs = Config.Instance.GetAllValues<TaskListConfig>();
+            if (configs.Count <= 0)
+            {
+                configs = Config.Instance.GetAllValues<TaskListConfig>();
+            }
+           // var configs = Config.Instance.GetAllValues<TaskListConfig>();
             foreach (var value in configs)
             {
                 if (value.ChapterID == ChapterID && value.TaskID<= mainTaskID)

--
Gitblit v1.8.0