From 4207826e9f5baa04f80db2c693443499292bcb14 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 12 Jul 2022 18:00:35 +0800 Subject: [PATCH] add Reverse: for v1.3.0 --- rule/public_platoon_relate_commission.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rule/public_platoon_relate_commission.go b/rule/public_platoon_relate_commission.go index dbd1ef4..4f578e0 100644 --- a/rule/public_platoon_relate_commission.go +++ b/rule/public_platoon_relate_commission.go @@ -190,11 +190,11 @@ func publicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPlatoon level = level1 + 1 //TODO::根据公式需要 + 1 if level > 2 { if level1 != level2 { - if position1 == getLevelForLastPosition(int(level), userPublicPlatoonSetting.SeveralTimes) { - position = position1 - } else { - position = reverseDeductionPosition(m.Position, getLevelForFirstPosition(int(level), userPublicPlatoonSetting.SeveralTimes), userPublicPlatoonSetting.SeveralTimes) - } + //if position1 == getLevelForLastPosition(int(level), userPublicPlatoonSetting.SeveralTimes) { + // position = position1 + //} else { + position = reverseDeductionPosition(m.Position, getLevelForFirstPosition(int(level), userPublicPlatoonSetting.SeveralTimes), userPublicPlatoonSetting.SeveralTimes) + //} } else { if position1 == getLevelForFirstPosition(int(level), userPublicPlatoonSetting.SeveralTimes) { position = position1