This commit is contained in:
aozhiwei 2024-05-09 14:20:34 +08:00
parent 790249d90e
commit 577035b375

View File

@ -68,11 +68,12 @@ func (this *mail) isType(mailType int32) bool {
}
func (this *mail) IsValid(hum common.Player) bool {
if f5.GetApp().GetNowSeconds() > int64(this.expireTime) &&
if f5.GetApp().GetRealSeconds() > int64(this.expireTime) &&
hum.GetRegisterTime() >= this.userRegStartTime &&
hum.GetRegisterTime() <= this.userRegEndTime {
if this.mailType == constant.MAIL_TYPE_GROUP {
} else if this.mailType == constant.MAIL_TYPE_ALL {
return true
}
}
return false