1
This commit is contained in:
parent
ebdc2a32e3
commit
d43c332e66
@ -35,8 +35,12 @@ type RiskMgr struct {
|
|||||||
|
|
||||||
func (this* RiskMgr) Init() *RiskMgr {
|
func (this* RiskMgr) Init() *RiskMgr {
|
||||||
this.fixedBlockProvinceCityHashMutex.Lock()
|
this.fixedBlockProvinceCityHashMutex.Lock()
|
||||||
|
this.gameHashMutex.Lock()
|
||||||
defer this.fixedBlockProvinceCityHashMutex.Unlock()
|
defer this.fixedBlockProvinceCityHashMutex.Unlock()
|
||||||
|
defer this.gameHashMutex.Unlock()
|
||||||
|
|
||||||
this.fixedBlockProvinceCityHash = make(map[string]int32)
|
this.fixedBlockProvinceCityHash = make(map[string]int32)
|
||||||
|
this.gameHash = make(map[int32]*GameConf)
|
||||||
for _, val := range G.MetaMgr.GetFixedBlockProvinceCity().GetList() {
|
for _, val := range G.MetaMgr.GetFixedBlockProvinceCity().GetList() {
|
||||||
this.fixedBlockProvinceCityHash[val] = 1
|
this.fixedBlockProvinceCityHash[val] = 1
|
||||||
}
|
}
|
||||||
@ -76,7 +80,7 @@ func (this* RiskMgr) OutputLog() {
|
|||||||
|
|
||||||
func (this* RiskMgr) GetGlobalPassObj() *q5.XObject {
|
func (this* RiskMgr) GetGlobalPassObj() *q5.XObject {
|
||||||
passObj := q5.NewMxoObject()
|
passObj := q5.NewMxoObject()
|
||||||
passObj.SetXValue("curr_white_ip_times", q5.NewXInt64(this.ipWhiteListPassTimes))
|
/// passObj.SetXValue("curr_white_ip_times", q5.NewXInt64(this.ipWhiteListPassTimes))
|
||||||
return passObj.AsXObject()
|
return passObj.AsXObject()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user