From 438e86834242b44356979ba7beba671e7abf4e6a Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Sun, 12 Jan 2025 00:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B4=E5=85=BD=E6=8E=92=E8=A1=8C=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/rankmatch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldsrv/rankmatch.go b/worldsrv/rankmatch.go index 7a87e13..fdcf4c0 100644 --- a/worldsrv/rankmatch.go +++ b/worldsrv/rankmatch.go @@ -956,9 +956,9 @@ func (r *RankMatchMgr) NianRankAward() { // 转换为时间戳(以秒为单位) timestamp := t.Unix() end, _ := time.Parse(time.DateTime, endTime) - endTimestamp := end.Unix() + //endTimestamp := end.Unix() nowTime := time.Now().Unix() - if nowTime < timestamp || nowTime > endTimestamp { + if nowTime < timestamp || time.Now().Day()-1 > end.Day() { return } log := &model.NianPlayerRankLog{}