From 36c1f9e790a99f6c28f3ab3539dd103c075454be Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Mon, 10 Aug 2026 15:27:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9B=B4=E6=96=B0web?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Common/DeployConfigService.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Common/DeployConfigService.cs b/IRaCIS.Core.Application/Service/Common/DeployConfigService.cs index c27b4d256..30c0beee9 100644 --- a/IRaCIS.Core.Application/Service/Common/DeployConfigService.cs +++ b/IRaCIS.Core.Application/Service/Common/DeployConfigService.cs @@ -191,7 +191,13 @@ public class DeployConfigService(IMapper _mapper, IConfiguration _configuration, } - public async Task UpdateWebConfigInfo(string configStr) + public class WebConfigCommand + { + public string ConfigStr { get; set; } + + } + + public async Task UpdateWebConfigInfo(WebConfigCommand incommand) { var path = Path.Combine(_hostEnvironment.ContentRootPath, $"appsettings.{_hostEnvironment.EnvironmentName}.json"); //var path = $"appsettings.{_hostEnvironment.EnvironmentName}.json"; @@ -205,7 +211,7 @@ public class DeployConfigService(IMapper _mapper, IConfiguration _configuration, JObject obj = JObject.Parse(text); // SystemEmailSendConfig 相关配置 - obj["FrontWebConfig"] = configStr; + obj["FrontWebConfig"] = incommand.ConfigStr; // 重新写入appsettings.json string result = obj.ToString();