From 42701512b319b5e809b5c8819f16a6f02a0b3951 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Tue, 16 Jun 2020 11:01:33 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/conf/conf.go | 7 +++++++ src/HttpServer/conf/world.xml | 1 + 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/HttpServer/conf/conf.go b/src/HttpServer/conf/conf.go index 7aff05a..feb1b65 100644 --- a/src/HttpServer/conf/conf.go +++ b/src/HttpServer/conf/conf.go @@ -14,9 +14,15 @@ type RedisConf struct { Password string `xml:",attr"` } +type ConiSrvConf struct { + Host string `xml:",attr"` + Key string `xml:",attr"` +} + type TexasConf struct { ServerHttpAddr ServerHttpAddrConf `xml:"ServerHttpAddr"` Redis RedisConf `xml:"Redis"` + CoinSrv ConiSrvConf `xml:"CoinSrv"` } var ( @@ -45,6 +51,7 @@ func LoadConf(filename string) error { func DumpConf() { logger.Info("--------------config dump----start--------") + logger.Info("conf=%+v", config) logger.Info("--------------config dump----end--------") } diff --git a/src/HttpServer/conf/world.xml b/src/HttpServer/conf/world.xml index d94a5c3..5141fd9 100644 --- a/src/HttpServer/conf/world.xml +++ b/src/HttpServer/conf/world.xml @@ -2,4 +2,5 @@ + \ No newline at end of file -- libgit2 0.21.0