From 03a0d99de9c5fed6bea8bc83b49ce27786bda38c Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期五, 07 二月 2025 09:29:59 +0800 Subject: [PATCH] 添加OPENAPI接口 --- WebApi/Global.asax.cs | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/WebApi/Global.asax.cs b/WebApi/Global.asax.cs index db69766..88b6d56 100644 --- a/WebApi/Global.asax.cs +++ b/WebApi/Global.asax.cs @@ -25,13 +25,18 @@ json.Indent = false; json.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local; - DataFolderHelper.IsExeExcute = true; + DataFolderHelper.IsExeExcute = true;//独立运行 - IStation.LogHelper.Initial(); + // IStation.LogHelper.Initial(); IStation.Common.AnaSetting.Initial(); IStation.Common.ReservoirParasHelper.Initial(); IStation.Common.RiverWaterLevelDropHelper.Initial(); + + //初始化雪花Id + //SnowflakeIdHelper.InitId(1); + + ScheduleTask.Initial(); } } -} +} \ No newline at end of file -- Gitblit v1.9.3