From f9ad02a244c29caaa5c2e5e7b6517ad1bc90464d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 22 May 2024 11:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/consume_integral_settlement.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index 399f2e3..8d67eaf 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -123,6 +123,9 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask } if hasConsumeTotal > 0 { for _, v := range subsidyWithUserForConsumeList { + if v.LeaveDay-1 < 0 { + continue + } consumeTotalMap[v.Uid] = consumeTotalMap[v.Uid].Add(decimal.NewFromFloat(consumeValue)) totalMap[v.Uid] = totalMap[v.Uid].Add(decimal.NewFromFloat(consumeValue)) consumeTotalCountMap[v.Uid]++ @@ -155,6 +158,9 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask return err, totalMap, storeTotalMap } for _, v := range subsidyWithUserForExperienceList { + if v.LeaveDay-1 < 0 { + continue + } experienceTotalCountMap[v.Uid]++ totalMap[v.Uid] = totalMap[v.Uid].Add(decimal.NewFromFloat(experienceValue)) experienceTotalMap[v.Uid] = experienceTotalMap[v.Uid].Add(decimal.NewFromFloat(experienceValue))