Commit 42701512b319b5e809b5c8819f16a6f02a0b3951
1 parent
93d1aa19
Exists in
master
提交
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
src/HttpServer/conf/conf.go
@@ -14,9 +14,15 @@ type RedisConf struct { | @@ -14,9 +14,15 @@ type RedisConf struct { | ||
14 | Password string `xml:",attr"` | 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 | type TexasConf struct { | 22 | type TexasConf struct { |
18 | ServerHttpAddr ServerHttpAddrConf `xml:"ServerHttpAddr"` | 23 | ServerHttpAddr ServerHttpAddrConf `xml:"ServerHttpAddr"` |
19 | Redis RedisConf `xml:"Redis"` | 24 | Redis RedisConf `xml:"Redis"` |
25 | + CoinSrv ConiSrvConf `xml:"CoinSrv"` | ||
20 | } | 26 | } |
21 | 27 | ||
22 | var ( | 28 | var ( |
@@ -45,6 +51,7 @@ func LoadConf(filename string) error { | @@ -45,6 +51,7 @@ func LoadConf(filename string) error { | ||
45 | 51 | ||
46 | func DumpConf() { | 52 | func DumpConf() { |
47 | logger.Info("--------------config dump----start--------") | 53 | logger.Info("--------------config dump----start--------") |
54 | + logger.Info("conf=%+v", config) | ||
48 | logger.Info("--------------config dump----end--------") | 55 | logger.Info("--------------config dump----end--------") |
49 | } | 56 | } |
50 | 57 |
src/HttpServer/conf/world.xml
@@ -2,4 +2,5 @@ | @@ -2,4 +2,5 @@ | ||
2 | <Config> | 2 | <Config> |
3 | <ServerHttpAddr Host=":50064" /> | 3 | <ServerHttpAddr Host=":50064" /> |
4 | <Redis Host="172.21.0.25:6379" Db="6" Password="crs-lzslccdc:redis@YXp8Jk#MV" /> | 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 | </Config> | 6 | </Config> |
6 | \ No newline at end of file | 7 | \ No newline at end of file |