From 06ca624886f894c3e0447d74130429497dcf3f3a Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 30 Nov 2023 15:29:59 +0800 Subject: [PATCH] x --- IRaCIS.Core.API/Program.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/IRaCIS.Core.API/Program.cs b/IRaCIS.Core.API/Program.cs index 07154c6c1..1d037402b 100644 --- a/IRaCIS.Core.API/Program.cs +++ b/IRaCIS.Core.API/Program.cs @@ -65,7 +65,7 @@ namespace IRaCIS.Core.API { Log.Logger.Warning($"当前部署平台环境:windows"); } - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { Log.Logger.Warning($"当前部署平台环境:linux"); } @@ -76,10 +76,10 @@ namespace IRaCIS.Core.API NewId.SetProcessIdProvider(new CurrentProcessIdProvider()); - + host.Run(); - + } catch (Exception e) @@ -114,13 +114,13 @@ namespace IRaCIS.Core.API var _repository = host.Services.GetService(typeof(IRepository)) as IRepository; //初始化 国际化数据,并且监测国际化文件变更 - //await InternationalizationHelper.InitInternationlizationDataAndWatchJsonFileAsync(_repository); + //await InternationalizationHelper.InitInternationlizationDataAndWatchJsonFileAsync(_repository); } - - + + } }