diff --git a/global/config.go b/global/config.go index 90b2dd2..8495355 100644 --- a/global/config.go +++ b/global/config.go @@ -173,7 +173,7 @@ type JSONConfig struct { UseSSOAddress bool `json:"use_sso_address"` Debug bool `json:"debug"` LogLevel string `json:"log_level"` - WebUI *GoCQWebUI `json:"web_ui"` + //WebUI *GoCQWebUI `json:"web_ui"` } // CQHTTPAPIConfig HTTPAPI对应的Config结构体 @@ -221,6 +221,7 @@ type GoCQReverseWebSocketConfig struct { ReverseReconnectInterval uint16 `json:"reverse_reconnect_interval"` } +/* // GoCQWebUI WebUI对应Config结构体 type GoCQWebUI struct { Enabled bool `json:"enabled"` @@ -228,6 +229,7 @@ type GoCQWebUI struct { WebUIPort uint64 `json:"web_ui_port"` WebInput bool `json:"web_input"` } +*/ // DefaultConfig 返回一份默认配置对应结构体 func DefaultConfig() *JSONConfig { @@ -273,12 +275,6 @@ func DefaultConfig() *JSONConfig { ReverseReconnectInterval: 3000, }, }, - WebUI: &GoCQWebUI{ - Enabled: true, - Host: "127.0.0.1", - WebInput: false, - WebUIPort: 9999, - }, } } diff --git a/main.go b/main.go index ba8c659..4da7d22 100644 --- a/main.go +++ b/main.go @@ -180,9 +180,11 @@ func main() { log.Warnf("已开启Debug模式.") log.Debugf("开发交流群: 192548878") server.Debug = true - if conf.WebUI == nil || !conf.WebUI.Enabled { - log.Warnf("警告: 在Debug模式下未启用WebUi服务, 将无法进行性能分析.") - } + /* + if conf.WebUI == nil || !conf.WebUI.Enabled { + log.Warnf("警告: 在Debug模式下未启用WebUi服务, 将无法进行性能分析.") + } + */ } log.Info("用户交流群: 721829413") if !global.PathExists("device.json") {