This commit is contained in:
aozhiwei 2020-11-13 11:02:35 +08:00
parent ebdc2a32e3
commit d43c332e66

View File

@ -35,8 +35,12 @@ type RiskMgr struct {
func (this* RiskMgr) Init() *RiskMgr {
this.fixedBlockProvinceCityHashMutex.Lock()
this.gameHashMutex.Lock()
defer this.fixedBlockProvinceCityHashMutex.Unlock()
defer this.gameHashMutex.Unlock()
this.fixedBlockProvinceCityHash = make(map[string]int32)
this.gameHash = make(map[int32]*GameConf)
for _, val := range G.MetaMgr.GetFixedBlockProvinceCity().GetList() {
this.fixedBlockProvinceCityHash[val] = 1
}
@ -76,7 +80,7 @@ func (this* RiskMgr) OutputLog() {
func (this* RiskMgr) GetGlobalPassObj() *q5.XObject {
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()
}