海波 张
2025-06-24 112c9bd20afed95d582b7eb227075ab8d10cdd12
util/Settings.cs
@@ -17,6 +17,13 @@
        public static string TmDeviceIp { get; set; }
        //hosttoagv鉴权
        //public static string AppKey { get; set; }
        //public static string AppSecret { get; set; }
        public static int TmDevicePort { get; set; }
        public static List<safetyLocation> safetyLocations { get; set; }
@@ -32,17 +39,28 @@
        /// </summary>
        public static string MesGetItemApi { get; set; }
        
        /// <summary>
        /// 配置
        /// </summary>
        public static List<deviceInfo> deviceInfos { get; set; }
        /// <summary>
        /// 胎面设备配置
        /// </summary>
        public static List<TmDeviceInfo> TmDeviceInfos { get; set; }
        public static List<areaInfo> areaInfos { get; set; }
        /// <summary>
        /// 优先级配置
        /// </summary>
         public static OutMinutePriority outMinutePriority { get; set; }
        /// <summary>
        /// NDC地址
        /// </summary>
        public static string NDCApiUrl { get; set; }
        
@@ -89,7 +107,16 @@
                            {
                                EmptyPalletBufferArea = keyValue.Value.ToString();
                            }
                            //hosttoagv鉴权
                            //if (keyValue.Name == "AppKey")
                            //{
                            //    AppKey = keyValue.Value.ToString();
                            //}
                            //if (keyValue.Name == "AppSecret")
                            //{
                            //    AppSecret = keyValue.Value.ToString();
                            //}
                            if (keyValue.Name == "SafetyLocation")
                            {
@@ -105,6 +132,10 @@
                            {
                                outMinutePriority = JsonConvert.DeserializeObject<OutMinutePriority> (keyValue.Value.ToString());
                            }
                            //if (keyValue.Name == "DeviceInfo")
                            //{
                            //    deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString());