Commit 42701512b319b5e809b5c8819f16a6f02a0b3951

Authored by 陆恒
1 parent 93d1aa19
Exists in master

提交

src/HttpServer/conf/conf.go
... ... @@ -14,9 +14,15 @@ type RedisConf struct {
14 14 Password string `xml:",attr"`
15 15 }
16 16  
  17 +type ConiSrvConf struct {
  18 + Host string `xml:",attr"`
  19 + Key string `xml:",attr"`
  20 +}
  21 +
17 22 type TexasConf struct {
18 23 ServerHttpAddr ServerHttpAddrConf `xml:"ServerHttpAddr"`
19 24 Redis RedisConf `xml:"Redis"`
  25 + CoinSrv ConiSrvConf `xml:"CoinSrv"`
20 26 }
21 27  
22 28 var (
... ... @@ -45,6 +51,7 @@ func LoadConf(filename string) error {
45 51  
46 52 func DumpConf() {
47 53 logger.Info("--------------config dump----start--------")
  54 + logger.Info("conf=%+v", config)
48 55 logger.Info("--------------config dump----end--------")
49 56 }
50 57  
... ...
src/HttpServer/conf/world.xml
... ... @@ -2,4 +2,5 @@
2 2 <Config>
3 3 <ServerHttpAddr Host=":50064" />
4 4 <Redis Host="172.21.0.25:6379" Db="6" Password="crs-lzslccdc:redis@YXp8Jk#MV" />
  5 + <CoinSrv Host="https://api.gamesdk.hmjoy.cn/" Key="e2cd22102143cdcd9c181f962d031685" />
5 6 </Config>
6 7 \ No newline at end of file
... ...