fix: 软质押任务时间范围

This commit is contained in:
lianghuanjie
2025-01-08 20:37:43 +08:00
parent 7b0d0d0260
commit 52916f3678
2 changed files with 3 additions and 2 deletions

View File

@@ -29,7 +29,8 @@ func (l *StakeSettleLogic) StakeSettle() {
logx.Errorw("get nft stake task open date failed", logx.Field("err", err))
return
}
end = end.AddDate(0, 0, 1).Add(-time.Second)
start = start.AddDate(0, 0, 1)
end = end.AddDate(0, 0, 1)
now := time.Now()
if now.Before(start) || now.After(end) {
logx.Infow("now is not in the date range", logx.Field("now", now), logx.Field("start", start), logx.Field("end", end))