diff --git a/src/Midjourney.API/Controllers/AdminController.cs b/src/Midjourney.API/Controllers/AdminController.cs index 705631c5..011ea06c 100644 --- a/src/Midjourney.API/Controllers/AdminController.cs +++ b/src/Midjourney.API/Controllers/AdminController.cs @@ -1847,8 +1847,13 @@ public Result SettingEdit([FromBody] Setting setting) return Result.Fail("演示模式,禁止操作"); } + var oldSetting = GlobalConfiguration.Setting; + setting.Id = Constants.DEFAULT_SETTING_ID; + // 保留原来的配置 + setting.IsMongo = oldSetting.IsMongo; + LiteDBHelper.SettingStore.Update(setting); GlobalConfiguration.Setting = setting; diff --git a/src/Midjourney.Infrastructure/GlobalConfiguration.cs b/src/Midjourney.Infrastructure/GlobalConfiguration.cs index 07332b5f..7b16a8c5 100644 --- a/src/Midjourney.Infrastructure/GlobalConfiguration.cs +++ b/src/Midjourney.Infrastructure/GlobalConfiguration.cs @@ -40,7 +40,7 @@ public class GlobalConfiguration /// /// 版本号 /// - public static string Version { get; set; } = "v6.0.0-beta.12"; + public static string Version { get; set; } = "v6.0.0-beta.13"; /// /// 全局配置项