From 79344769121387e510999b722dc1d13323609ebd Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Tue, 16 Apr 2024 21:24:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbstruct/vas_mysql.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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