diff --git a/server/analyseapi/riskmgr.go b/server/analyseapi/riskmgr.go index 17f878c..65b4cf4 100644 --- a/server/analyseapi/riskmgr.go +++ b/server/analyseapi/riskmgr.go @@ -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() }