This commit is contained in:
aozhiwei 2021-01-07 11:28:40 +08:00
parent c418933185
commit cab594d969

View File

@ -48,10 +48,10 @@ func (this* RiskMgr) Init() *RiskMgr {
this.accessSecret = G.MetaMgr.GetAliKey().GetAccessSecret()
this.clusterConf = G.MetaMgr.GetCurrServer()
G.HttpServer.RegisterHandle("Analyse", "isOpen", this.__analyseIsOpen)
G.HttpServer.RegisterHandle("Ops", "dump", this.__opsDump)
G.HttpServer.RegisterHandle("Ops", "syncConf", this.__opsSyncConf)
G.HttpServer.RegisterHandle("Ops", "info", this.__opsInfo)
G.HttpServer.RegisterHandle("Analyse", "isOpen", this._analyseIsOpen)
G.HttpServer.RegisterHandle("Ops", "dump", this._opsDump)
G.HttpServer.RegisterHandle("Ops", "syncConf", this._opsSyncConf)
G.HttpServer.RegisterHandle("Ops", "info", this._opsInfo)
f5.Timer().AddRepeatTimer(1000 * 60,
func (params* q5.XParams) {
},
@ -149,7 +149,7 @@ func (this *RiskMgr) GetGameConf(gameId int32, channel int32) *GameConf {
return val
}
func (this *RiskMgr) __analyseIsOpen(c *f5.Context) {
func (this *RiskMgr) _analyseIsOpen(c *f5.Context) {
var gameConf *GameConf
responseStr := ""
isPass := func () bool {
@ -211,7 +211,7 @@ func (this *RiskMgr) __analyseIsOpen(c *f5.Context) {
}
}
func (this *RiskMgr) __opsDump(c *f5.Context) {
func (this *RiskMgr) _opsDump(c *f5.Context) {
gameId := c.Request("gameid").GetInt32()
channel := c.Request("channel").GetInt32()
gameConf := this.GetGameConf(gameId, channel)
@ -222,7 +222,7 @@ func (this *RiskMgr) __opsDump(c *f5.Context) {
c.Response(gameConf.Dump().ToJsonStr())
}
func (this *RiskMgr) __opsSyncConf(c *f5.Context) {
func (this *RiskMgr) _opsSyncConf(c *f5.Context) {
gameId := c.Request("gameid").GetInt32()
channel := c.Request("channel").GetInt32()
gameConf := this.GetGameConf(gameId, channel)
@ -234,7 +234,7 @@ func (this *RiskMgr) __opsSyncConf(c *f5.Context) {
c.ResponseOk()
}
func (this *RiskMgr) __opsInfo(c *f5.Context) {
func (this *RiskMgr) _opsInfo(c *f5.Context) {
gameId := c.Request("gameid").GetInt32()
channel := c.Request("channel").GetInt32()
gameConf := this.GetGameConf(gameId, channel)