Merge branch 'feat-IRONFANS-70' into test

This commit is contained in:
lwl0608 2024-04-16 21:24:51 +08:00
commit 66b25dceb0
1 changed files with 3 additions and 3 deletions

View File

@ -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