From 86075b587b5df399c0a6017219490997cc07043f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 13 Nov 2020 17:32:06 +0800 Subject: [PATCH] 1 --- server/analyseapi/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/analyseapi/types.go b/server/analyseapi/types.go index 83a3376..00199ae 100644 --- a/server/analyseapi/types.go +++ b/server/analyseapi/types.go @@ -12,6 +12,7 @@ type GameConf struct { channel int32 syncTimes int64 lastSyncTime int64 + lastActiveTime int64 ipWhiteList map[string]int32 ipWhiteListMutex sync.RWMutex @@ -153,6 +154,7 @@ func (this* GameConf) Init() { for _, val := range G.MetaMgr.GetFixedBlockProvinceCity().GetList() { this.blockProvinceCityHash[val] = 1 } + this.lastActiveTime = f5.App.NowUnix() } func (this* GameConf) IsBlockZone(country string, province string, city string) bool { @@ -261,6 +263,7 @@ func (this* GameConf) GetBlockObj() *q5.XObject { } func (this* GameConf) Active() { + this.lastActiveTime = f5.App.NowUnix() } func (this* GameConf) SyncConf() {