补充启动json配置
This commit is contained in:
parent
bfa01938ec
commit
ca643695b5
@ -21,7 +21,7 @@ type GameConfig struct {
|
|||||||
BattleOpen bool //是否启用战斗
|
BattleOpen bool //是否启用战斗
|
||||||
BattleAddr string //战斗服地址
|
BattleAddr string //战斗服地址
|
||||||
PprofOpen bool //是否启动性能监控
|
PprofOpen bool //是否启动性能监控
|
||||||
PprofAddr string //性能监控查看端口
|
PprofPort int //性能监控查看端口
|
||||||
}
|
}
|
||||||
|
|
||||||
//区服db配置
|
//区服db配置
|
||||||
|
@ -466,7 +466,6 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
|
|||||||
"MaxAgeTime": 7,
|
"MaxAgeTime": 7,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sseting.Sys["configure"] = map[string]interface{}{
|
sseting.Sys["configure"] = map[string]interface{}{
|
||||||
"ConfigurePath": "./json",
|
"ConfigurePath": "./json",
|
||||||
"TimestampFile": "./timestamp.text",
|
"TimestampFile": "./timestamp.text",
|
||||||
@ -485,6 +484,10 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
|
|||||||
"MongodbDatabase": config.LoaclDB.MongodbDatabase,
|
"MongodbDatabase": config.LoaclDB.MongodbDatabase,
|
||||||
"CrossConfig": crosspath,
|
"CrossConfig": crosspath,
|
||||||
}
|
}
|
||||||
|
sseting.Sys["pprof"] = map[string]interface{}{
|
||||||
|
"IsOpen": config.PprofOpen,
|
||||||
|
"ListenPort": config.PprofPort,
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user