diff --git a/dbstruct/vas_mysql.go b/dbstruct/vas_mysql.go index 5d1ee1f8..a974a6d8 100644 --- a/dbstruct/vas_mysql.go +++ b/dbstruct/vas_mysql.go @@ -962,21 +962,21 @@ type ZoneUnlock struct { } 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 false } 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 false } 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 false