kazelee
2025-05-14 cd92df8b7b383a6a3218f50b3b62264db8332899
AppStart/Settings.cs
@@ -19,12 +19,18 @@
        /// </summary>
        public static Dictionary<string, List<string>> AreaMap { get; set; } = new Dictionary<string, List<string>>();
        //public static Snap Snap { get; set; }
        public static string CaptureUrl { get; set; }
        public static void Init() {
            // 加载配置文件
            LoadJson();
            // 针对 Areas 进行转换:将 Config 的 List 加载到 Dict 中
            LoadAreas();
            //Snap = Config.Snap[0]; // 目前本项目只有一个相机
            CaptureUrl = Config.CaptureUrl; // 保存图片的根目录
        }
        private static void LoadJson() {