mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
add default 'http_config.post_message_format' value.
This commit is contained in:
parent
1967e687af
commit
782a3e2a39
4
main.go
4
main.go
@ -196,8 +196,8 @@ func main() {
|
||||
if conf.HttpConfig != nil && conf.HttpConfig.Enabled {
|
||||
server.HttpServer.Run(fmt.Sprintf("%s:%d", conf.HttpConfig.Host, conf.HttpConfig.Port), conf.AccessToken, b)
|
||||
if conf.HttpConfig.PostMessageFormat != "string" && conf.HttpConfig.PostMessageFormat != "array" {
|
||||
log.Errorf("http_config.post_message_format 配置错误")
|
||||
return
|
||||
log.Warnf("http_config.post_message_format 配置错误, 将自动使用 string")
|
||||
coolq.SetMessageFormat("string")
|
||||
} else {
|
||||
coolq.SetMessageFormat(conf.HttpConfig.PostMessageFormat)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user