From 586c39d671766a45ae1bca35d3d704ecbeccee22 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Fri, 5 Jun 2020 15:31:36 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/conf/conf.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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