Преглед на файлове

add Reverse: for v1.3.0

tags/v1.3.0
DengBiao преди 2 години
родител
ревизия
4207826e9f
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. +5
    -5
      rule/public_platoon_relate_commission.go

+ 5
- 5
rule/public_platoon_relate_commission.go Целия файл

@@ -190,11 +190,11 @@ func publicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPlatoon
level = level1 + 1 //TODO::根据公式需要 + 1 level = level1 + 1 //TODO::根据公式需要 + 1
if level > 2 { if level > 2 {
if level1 != level2 { 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 { } else {
if position1 == getLevelForFirstPosition(int(level), userPublicPlatoonSetting.SeveralTimes) { if position1 == getLevelForFirstPosition(int(level), userPublicPlatoonSetting.SeveralTimes) {
position = position1 position = position1


Зареждане…
Отказ
Запис