Merge branch 'feat-IRONFANS-70' into test
This commit is contained in:
commit
66b25dceb0
|
@ -962,21 +962,21 @@ type ZoneUnlock struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *ZoneUnlock) IsUnlockAdmission() bool {
|
func (p *ZoneUnlock) IsUnlockAdmission() bool {
|
||||||
if p.GetAdmissionUntil() == -1 || p.GetAdmissionUntil() < time.Now().Unix() {
|
if p.GetAdmissionUntil() == -1 || p.GetAdmissionUntil() >= time.Now().Unix() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *ZoneUnlock) IsUnlockIronfanship() bool {
|
func (p *ZoneUnlock) IsUnlockIronfanship() bool {
|
||||||
if p.GetIronfanshipUntil() == -1 || p.GetIronfanshipUntil() < time.Now().Unix() {
|
if p.GetIronfanshipUntil() == -1 || p.GetIronfanshipUntil() >= time.Now().Unix() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *ZoneUnlock) IsUnlockSuperfanship() bool {
|
func (p *ZoneUnlock) IsUnlockSuperfanship() bool {
|
||||||
if p.GetSuperfanshipUntil() == -1 || p.GetSuperfanshipUntil() < time.Now().Unix() {
|
if p.GetSuperfanshipUntil() == -1 || p.GetSuperfanshipUntil() >= time.Now().Unix() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue