From 10d65f3d95f0679381ad745af4eb2a0b054303f0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 22 Jan 2021 11:52:19 +0800 Subject: [PATCH] 1 --- server/analyseapi/gameconf.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/analyseapi/gameconf.go b/server/analyseapi/gameconf.go index e08da22..68acf15 100644 --- a/server/analyseapi/gameconf.go +++ b/server/analyseapi/gameconf.go @@ -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)