This commit is contained in:
aozhiwei 2020-11-13 17:32:06 +08:00
parent 0ee069bbc9
commit 86075b587b

View File

@ -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() {