1
This commit is contained in:
parent
0ee069bbc9
commit
86075b587b
@ -12,6 +12,7 @@ type GameConf struct {
|
|||||||
channel int32
|
channel int32
|
||||||
syncTimes int64
|
syncTimes int64
|
||||||
lastSyncTime int64
|
lastSyncTime int64
|
||||||
|
lastActiveTime int64
|
||||||
|
|
||||||
ipWhiteList map[string]int32
|
ipWhiteList map[string]int32
|
||||||
ipWhiteListMutex sync.RWMutex
|
ipWhiteListMutex sync.RWMutex
|
||||||
@ -153,6 +154,7 @@ func (this* GameConf) Init() {
|
|||||||
for _, val := range G.MetaMgr.GetFixedBlockProvinceCity().GetList() {
|
for _, val := range G.MetaMgr.GetFixedBlockProvinceCity().GetList() {
|
||||||
this.blockProvinceCityHash[val] = 1
|
this.blockProvinceCityHash[val] = 1
|
||||||
}
|
}
|
||||||
|
this.lastActiveTime = f5.App.NowUnix()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this* GameConf) IsBlockZone(country string, province string, city string) bool {
|
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() {
|
func (this* GameConf) Active() {
|
||||||
|
this.lastActiveTime = f5.App.NowUnix()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this* GameConf) SyncConf() {
|
func (this* GameConf) SyncConf() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user