1
This commit is contained in:
parent
b46a50bcbf
commit
10d65f3d95
@ -42,15 +42,15 @@ func (this *GameConf) IsPass(remoteAddr string, launchInfo string, responseStr*
|
|||||||
atomic.AddInt64(&this.totalDataBlockTimes, 1)
|
atomic.AddInt64(&this.totalDataBlockTimes, 1)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if !this.InSceneWhiteList(launchObj) {
|
|
||||||
atomic.AddInt64(&this.sceneWhiteListBlockTimes, 1)
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if G.RiskMgr.IsSafeZone(remoteAddr, responseStr) {
|
if G.RiskMgr.IsSafeZone(remoteAddr, responseStr) {
|
||||||
atomic.AddInt64(&this.totalSafeZonePassTimes, 1)
|
atomic.AddInt64(&this.totalSafeZonePassTimes, 1)
|
||||||
atomic.AddInt64(&this.safeZonePassTimes, 1)
|
atomic.AddInt64(&this.safeZonePassTimes, 1)
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
|
if !this.InSceneWhiteList(launchObj) {
|
||||||
|
atomic.AddInt64(&this.sceneWhiteListBlockTimes, 1)
|
||||||
|
return false
|
||||||
|
}
|
||||||
if this.InLaunchWhiteList(launchObj) {
|
if this.InLaunchWhiteList(launchObj) {
|
||||||
atomic.AddInt64(&this.totalLaunchWhiteListPassTimes, 1)
|
atomic.AddInt64(&this.totalLaunchWhiteListPassTimes, 1)
|
||||||
atomic.AddInt64(&this.launchWhiteListPassTimes, 1)
|
atomic.AddInt64(&this.launchWhiteListPassTimes, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user