diff --git a/backend/cmd/main.go b/backend/cmd/main.go index acbe436..80b6179 100644 --- a/backend/cmd/main.go +++ b/backend/cmd/main.go @@ -328,7 +328,13 @@ func handleConfig(w http.ResponseWriter, r *http.Request) { return } - logger.Success("配置已更新并保存到数据库", "", "config") + // 输出切换后的详细配置 + logger.Success("S2A 配置已切换", "", "config") + logger.Info(fmt.Sprintf(" API: %s", config.Global.S2AApiBase), "", "config") + logger.Info(fmt.Sprintf(" 并发: %d | 优先级: %d | 分组: %v", config.Global.Concurrency, config.Global.Priority, config.Global.GroupIDs), "", "config") + if config.Global.ProxyEnabled { + logger.Info(fmt.Sprintf(" 代理: %s", config.Global.DefaultProxy), "", "config") + } api.Success(w, map[string]string{"message": "配置已更新"}) default: