fix: unable to switch subscribtion profile

This commit is contained in:
Tunglies 2025-03-30 12:53:16 +08:00
parent 9b02088918
commit 937f43c270
2 changed files with 4 additions and 6 deletions

View File

@ -378,10 +378,10 @@ impl CoreManager {
logging!(info, Type::Config, true, "开始更新配置"); logging!(info, Type::Config, true, "开始更新配置");
// 1. 先生成新的配置内容 // 1. 先生成新的配置内容
// logging!(info, Type::Config, true, "生成新的配置内容"); logging!(info, Type::Config, true, "生成新的配置内容");
// Config::generate().await?; Config::generate().await?;
// 3. 验证配置 // 2. 验证配置
match self.validate_config().await { match self.validate_config().await {
Ok((true, _)) => { Ok((true, _)) => {
logging!(info, Type::Config, true, "配置验证通过"); logging!(info, Type::Config, true, "配置验证通过");

View File

@ -1,6 +1,4 @@
use crate::enhance::seq::SeqMap; use crate::{enhance::seq::SeqMap, logging, utils::logging::Type};
use crate::logging;
use crate::utils::logging::Type;
use anyhow::{anyhow, bail, Context, Result}; use anyhow::{anyhow, bail, Context, Result};
use nanoid::nanoid; use nanoid::nanoid;
use serde::{de::DeserializeOwned, Serialize}; use serde::{de::DeserializeOwned, Serialize};