From fccc60d8897642ef5c39176b8c872b63fe819ae2 Mon Sep 17 00:00:00 2001 From: xcd <834800634@qq.com> Date: 星期五, 20 十一月 2020 10:44:57 +0800 Subject: [PATCH] gocator添加int4类型数据,暂时注释 --- src/Bro.Common.Model/Helper/SettingHelper.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Bro.Common.Model/Helper/SettingHelper.cs b/src/Bro.Common.Model/Helper/SettingHelper.cs index a14100e..99f93c2 100644 --- a/src/Bro.Common.Model/Helper/SettingHelper.cs +++ b/src/Bro.Common.Model/Helper/SettingHelper.cs @@ -76,9 +76,15 @@ return codes; } - public static List<string> AddNewProductionCode(string code) + public static void AddNewProductionCode(string code) { var dataTemp = GetSettingData(); + + if (!dataTemp.ContainsKey(PROPERTY_PRODUCTIONCODES)) + { + dataTemp.Add(PROPERTY_PRODUCTIONCODES, new JArray()); + } + if (dataTemp != null && dataTemp.ContainsKey(PROPERTY_PRODUCTIONCODES)) { List<string> codes = GetProductionCodes(); @@ -96,7 +102,6 @@ writer.Close(); } } - return GetProductionCodes(); } public static string GetConfigFilePath() -- Gitblit v1.8.0