This commit is contained in:
aozhiwei 2021-01-22 11:52:19 +08:00
parent b46a50bcbf
commit 10d65f3d95

View File

@ -42,15 +42,15 @@ func (this *GameConf) IsPass(remoteAddr string, launchInfo string, responseStr*
atomic.AddInt64(&this.totalDataBlockTimes, 1)
return false
}
if !this.InSceneWhiteList(launchObj) {
atomic.AddInt64(&this.sceneWhiteListBlockTimes, 1)
return false
}
if G.RiskMgr.IsSafeZone(remoteAddr, responseStr) {
atomic.AddInt64(&this.totalSafeZonePassTimes, 1)
atomic.AddInt64(&this.safeZonePassTimes, 1)
return true
} else {
if !this.InSceneWhiteList(launchObj) {
atomic.AddInt64(&this.sceneWhiteListBlockTimes, 1)
return false
}
if this.InLaunchWhiteList(launchObj) {
atomic.AddInt64(&this.totalLaunchWhiteListPassTimes, 1)
atomic.AddInt64(&this.launchWhiteListPassTimes, 1)