From 9ab11e32d63af93324beba018e6ed9663cc87e96 Mon Sep 17 00:00:00 2001 From: Wen JY Date: Fri, 19 Jan 2024 13:31:24 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Serilog/SerilogExtensions.cs | 2 +- SlnMesnac/Properties/launchSettings.json | 2 +- SlnMesnac/Startup.cs | 6 +++--- SlnMesnac/appsettings.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SlnMesnac.Serilog/SerilogExtensions.cs b/SlnMesnac.Serilog/SerilogExtensions.cs index b2f1846..a940a00 100644 --- a/SlnMesnac.Serilog/SerilogExtensions.cs +++ b/SlnMesnac.Serilog/SerilogExtensions.cs @@ -30,7 +30,7 @@ namespace SlnMesnac.Serilog //.WriteTo.File(Path.Combine(logPath, "Debug.log"), LogEventLevel.Debug, fileSizeLimitBytes: 5 * 1024) .CreateLogger(); app.UseSerilogRequestLogging(); - + Log.Information($"系统初始化完成,日志存放路径:{logPath}"); return app; } } diff --git a/SlnMesnac/Properties/launchSettings.json b/SlnMesnac/Properties/launchSettings.json index 3f9dcb9..132d84c 100644 --- a/SlnMesnac/Properties/launchSettings.json +++ b/SlnMesnac/Properties/launchSettings.json @@ -21,7 +21,7 @@ "commandName": "Project", "launchBrowser": true, //"launchUrl": "swagger", - "applicationUrl": "http://localhost:5000", + "applicationUrl": "http://localhost:5001", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/SlnMesnac/Startup.cs b/SlnMesnac/Startup.cs index 9d0a9dd..fede45b 100644 --- a/SlnMesnac/Startup.cs +++ b/SlnMesnac/Startup.cs @@ -84,16 +84,16 @@ namespace SlnMesnac services.AddServices(); //注册Quartz - services.AddQuartzSetUp(); + //services.AddQuartzSetUp(); //注册PLC services.AddPlcSetup(); //注册MQTT - services.AddMqttSetup(); + //services.AddMqttSetup(); //注册TouchSocket - services.AddTouchSocketSetup(); + //services.AddTouchSocketSetup(); } /// diff --git a/SlnMesnac/appsettings.json b/SlnMesnac/appsettings.json index d05c71e..f8e683a 100644 --- a/SlnMesnac/appsettings.json +++ b/SlnMesnac/appsettings.json @@ -8,7 +8,7 @@ }, "AllowedHosts": "*", "AppConfig": { - "logPath": "E:\\桌面\\日常代码\\SlnMesnac\\SlnMesnac\\bin\\Debug\\net6.0", + "logPath": "/Users/wenxiansheng/Desktop/日常代码/杜肯新材料程序设计/Durk.SlnMesnac/SlnMesnac/bin/Debug/net6.0", "mesConnStr": "server=.;uid=sa;pwd=123456;database=JiangYinMENS", "mcsConnStr": "Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma" }