/// <summary> /// 返回json文件中的配置数据 /// </summary> /// <returns></returns> public static ConfigModel GetJsonConfig() { string config_path = Environment.CurrentDirectory + @"\config.json"; JsonMethods jsonMethods = new JsonMethods(); jsonMethods.Encoding = Encoding.UTF8; ConfigModel configModel = jsonMethods.DeserializeObject <ConfigModel>(config_path, jsonMethods.Encoding); return(configModel); }