|
|
@@ -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 |
|
|
|