From 768dd92e2def6e30f84b5e904a639dcff8f59eab Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Thu, 6 Feb 2025 11:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B4=E5=85=BD=E6=B4=BB=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E5=8C=BA=E4=BF=AE=E6=94=B9?= 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 a44b0e5..4e9d7d0 100644 --- a/worldsrv/rankmatch.go +++ b/worldsrv/rankmatch.go @@ -959,7 +959,6 @@ func (r *RankMatchMgr) NianRankAward() { endTimestamp := end.Unix()*/ timestamp := common.StrTimeToTs(startTime) endTimestamp := common.StrTimeToTs(endTime) - end, _ := time.Parse(time.DateTime, endTime) nowTime := time.Now().Unix() if nowTime < timestamp || nowTime-86400 > endTimestamp { return @@ -1057,7 +1056,8 @@ func (r *RankMatchMgr) NianRankAward() { })).StartByExecutor("NianLuck_Award") } else if info.TypeId == 2 { yesterday := time.Unix(time.Now().Unix()-86400, 0) - if yesterday.Day() != end.Day() { + endDay := time.Unix(endTimestamp, 0) + if yesterday.Day() != endDay.Day() { return } rankAward := info.RankInfo