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();