From 5c0f92928a17d69ea1eb9c3c26496e6dddf22e6e Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Sat, 30 Aug 2025 16:14:05 +0800 Subject: [PATCH] upgrade --- src/InterfaceForward.Api/InterfaceForward.Api.csproj | 2 +- src/InterfaceForward.Api/appsettings.json | 5 +++-- .../InterfaceForward.Application.csproj | 6 +++--- .../InterfaceForward.Domain.Shared.csproj | 2 +- .../InterfaceForward.Repositories.csproj | 2 +- .../Log/ES/ConnectionFactory.cs | 3 ++- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/InterfaceForward.Api/InterfaceForward.Api.csproj b/src/InterfaceForward.Api/InterfaceForward.Api.csproj index 98ee409..f897c82 100644 --- a/src/InterfaceForward.Api/InterfaceForward.Api.csproj +++ b/src/InterfaceForward.Api/InterfaceForward.Api.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/InterfaceForward.Api/appsettings.json b/src/InterfaceForward.Api/appsettings.json index 9eaae23..bd3e15c 100644 --- a/src/InterfaceForward.Api/appsettings.json +++ b/src/InterfaceForward.Api/appsettings.json @@ -31,7 +31,7 @@ "Default": "server=129.204.22.146;database=interface_forward;uid=dev;pwd=itd!@#123;charset=utf8mb4;" }, "FeiShuNotice": { - "TitlePrefix": "InterfaceForward", + "TitlePrefix": "InterfaceForward-Dev", "Webhook": "https://open.feishu.cn/open-apis/bot/v2/hook/e5ced977-a616-42ce-8684-c7628e71b35e", "Timeout": 20 }, @@ -57,6 +57,7 @@ "NodeUrls": [ "http://129.204.22.146:9200" ], "LoginName": "elastic", "Password": "itd!@#123", - "Base64PassPassword": "Basic ZWxhc3RpYzphZnlUZ21WYjhqcTY=" + "ShowLogInfo": false, + "IndexPrefix": "" } } diff --git a/src/InterfaceForward.Application/InterfaceForward.Application.csproj b/src/InterfaceForward.Application/InterfaceForward.Application.csproj index 629592c..5e0ca19 100644 --- a/src/InterfaceForward.Application/InterfaceForward.Application.csproj +++ b/src/InterfaceForward.Application/InterfaceForward.Application.csproj @@ -17,9 +17,9 @@ - - - + + + diff --git a/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj b/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj index 635dc96..c6542f7 100644 --- a/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj +++ b/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj @@ -11,6 +11,6 @@ - + diff --git a/src/InterfaceForward.Repositories/InterfaceForward.Repositories.csproj b/src/InterfaceForward.Repositories/InterfaceForward.Repositories.csproj index 80c47b9..e2ba9dc 100644 --- a/src/InterfaceForward.Repositories/InterfaceForward.Repositories.csproj +++ b/src/InterfaceForward.Repositories/InterfaceForward.Repositories.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/InterfaceForward.Repositories/Log/ES/ConnectionFactory.cs b/src/InterfaceForward.Repositories/Log/ES/ConnectionFactory.cs index 45e8624..875dbf5 100644 --- a/src/InterfaceForward.Repositories/Log/ES/ConnectionFactory.cs +++ b/src/InterfaceForward.Repositories/Log/ES/ConnectionFactory.cs @@ -1,4 +1,5 @@ using System.Collections.Concurrent; +using System.Diagnostics; using System.Reflection; using Elasticsearch.Net; using Microsoft.Extensions.Logging; @@ -55,7 +56,7 @@ public class ConnectionFactory : ISingletonDependency _connectionSettings.DefaultIndex(defaultIndex); //是否输出日志 - if (_options.ShowLogInfo) + if (Debugger.IsAttached || _options.ShowLogInfo) { _connectionSettings.EnableDebugMode(); client = new ElasticClient(_connectionSettings