Browse Source

修正:新加config.json字段时,默认为false。

JeffWang 2 years ago
parent
commit
1318b06840

+ 2 - 2
FactoryTool_CShare/Business/CommonMethod.cs

@@ -1244,7 +1244,7 @@ end:
             return r.Match(value).Success;
         }
 
-        public static bool InsertJsonConfig(string node, string key)
+        public static bool InsertJsonConfig(string node, string key, bool value = false)
         {
             JObject jObject;
             using (StreamReader file = new StreamReader(LocalPath.localpath + "\\Config.json"))
@@ -1252,7 +1252,7 @@ end:
                 using (JsonTextReader reader = new JsonTextReader(file))
                 {
                     jObject = (JObject)JToken.ReadFrom(reader);
-                    jObject[node][key] = true;
+                    jObject[node][key] = value;
                 }
             }
             using (StreamWriter writer = new StreamWriter(LocalPath.localpath + "\\Config.json"))

+ 1 - 1
FactoryTool_CShare/Models/StructList.cs

@@ -404,7 +404,7 @@ namespace MOKA_Factory_Tools
         public bool EDIDPIDWrite_YesNo { get; set; }
         public bool EDIDModeNameWrite_YesNo { get; set; }
         public bool FVPWrite_YesNo { get; set; }
-	public bool DolbyWrite_YesNo { get;set; }
+	    public bool DolbyWrite_YesNo { get;set; }
         #region getmessage接口对应需要在线获取的key类型;
         public bool DIDWrite_YesNo { get; set; }
         public bool MacWrite_YesNo { get; set; }