kazelee
2025-05-16 67f74c1d68ccbb69eb8436e70018357533ef9c0a
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() {