123
cjs
8 小时以前 2877a2f0b9a0276e95f3312ae1dcdd1aece3ea94
HH.WCS.Mobox3.NongFuLinZhi/util/Settings.cs
@@ -24,11 +24,13 @@
        public static List<pPZSJSite> pPZSJSites { get; set; } = new List<pPZSJSite>();
        public static List<thirdPartyUrl> thirdPartyUrls { get; set; } = new List<thirdPartyUrl>();
        public static List<httpApiVerify> httpApiVerifys { get; set; } = new List<httpApiVerify>();
        public static List<dXSite> dXSites { get; set; } = new List<dXSite>();
        public static int port { get; set; }
        public static string WHCode { get; set; }
        public static string FacCode { get; set; }
        public static int tcpPort { get; set; }
        public static int lQHours { get; set; }
        public static void Init()
        {
@@ -88,6 +90,10 @@
                            {
                                tcpPort = int.Parse(keyValue.Value.ToString());
                            }
                            if (keyValue.Name == "LQHours")
                            {
                                lQHours = int.Parse(keyValue.Value.ToString());
                            }
                            if (keyValue.Name == "ApiPort")
                            {
                                port = int.Parse(keyValue.Value.ToString());
@@ -108,6 +114,10 @@
                            {
                                httpApiVerifys = JsonConvert.DeserializeObject<List<httpApiVerify>>(keyValue.Value.ToString());
                            }
                            if (keyValue.Name == "DXSite")
                            {
                                dXSites = JsonConvert.DeserializeObject<List<dXSite>>(keyValue.Value.ToString());
                            }
                        }
                    }
                }
@@ -126,6 +136,12 @@
            public string Project { get; set; }
            public string[] Extend { get; set; }
            public int enable { get; set; }
        }
        public class dXSite
        {
            public string loc { get; set; }
            public int site { get; set; }
        }           
        public class thirdPartyUrl
        {
@@ -160,6 +176,7 @@
        {
            public string areaName { get; set; }
            public string areaCode { get; set; }
            public int pri { get; set; }
            public int enable { get; set; }
        }