上传gm开启配置
This commit is contained in:
parent
1945c4db95
commit
4aa4a167c5
@ -6,6 +6,7 @@ type GameConfig struct {
|
|||||||
AreaName string //区服名
|
AreaName string //区服名
|
||||||
OpenServiceTime string //开服时间
|
OpenServiceTime string //开服时间
|
||||||
Channel string //渠道
|
Channel string //渠道
|
||||||
|
OpenGM bool //是否开启GM工具
|
||||||
Loglevel int32 //日志文件输出级别
|
Loglevel int32 //日志文件输出级别
|
||||||
MaxAgeTime int32 //日志文件保存时长
|
MaxAgeTime int32 //日志文件保存时长
|
||||||
ConsulAddr []string //区服Consul
|
ConsulAddr []string //区服Consul
|
||||||
|
@ -321,6 +321,13 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
|
|||||||
err = fmt.Errorf("服务类型异常 stype:%s", sseting.Type)
|
err = fmt.Errorf("服务类型异常 stype:%s", sseting.Type)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.OpenGM {
|
||||||
|
sseting.Modules["chat"] = map[string]interface{}{
|
||||||
|
"GM": true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if !onelog {
|
if !onelog {
|
||||||
sseting.Sys["log"] = map[string]interface{}{
|
sseting.Sys["log"] = map[string]interface{}{
|
||||||
"FileName": fmt.Sprintf("./log/%s.log", sseting.Id),
|
"FileName": fmt.Sprintf("./log/%s.log", sseting.Id),
|
||||||
|
Loading…
Reference in New Issue
Block a user