diff --git a/src/HttpServer/conf/conf.go b/src/HttpServer/conf/conf.go index 14bff6f..976c06a 100644 --- a/src/HttpServer/conf/conf.go +++ b/src/HttpServer/conf/conf.go @@ -15,7 +15,7 @@ type RedisConf struct { } type TexasConf struct { - GameDB MysqlConf `xml:"GameDB"` + GameDB MysqlConf `xml:"GameDB"` ServerHttpAddr ServerHttpAddrConf `xml:"ServerHttpAddr"` Redis RedisConf `xml:"Redis"` } @@ -27,6 +27,7 @@ var ( func GetRedisConf() RedisConf { return config.Redis } + type MysqlConf struct { Ip string `xml:",attr"` Port int `xml:",attr"` @@ -66,5 +67,6 @@ func GetServerHttpAddrConf() string { } type ServerHttpAddrConf struct { - Host string `xml:",attr"` + Host string `xml:",attr"` + IsTest string `xml:",attr"` } -- libgit2 0.21.0