Pārlūkot izejas kodu

链动制度

tags/v4.3.0
huangjiajun pirms 1 gada
vecāks
revīzija
0da1c96fbe
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. +7
    -0
      lib/comm_plan/winery.go

+ 7
- 0
lib/comm_plan/winery.go Parādīt failu

@@ -92,7 +92,11 @@ Loop:
if isBreak && len(zeroList) == len(opt.UserRate[maxLv].ReturnType) {
break Loop
}
if node.ParentUser.Lv > 2 && maxLvData != nil {
node.ParentUser.LevelWeight = maxLvData.LevelWeight
}
maxLevelWeight, maxLv, peerRate, peerRateList, peerNum, sameProfit, sameProfitList = node.ParentUser.LevelWeight, node.ParentUser.Lv, 0, nil, 0, node.ParentUser.Profit, node.ParentUser.ProfitList

} else {
if node.ParentUser.Lv > 2 && maxLvData != nil {
node.ParentUser.LevelWeight = maxLvData.LevelWeight
@@ -132,6 +136,9 @@ Loop:
if isBreak && len(zeroList) == len(opt.UserRate[maxLv].ReturnType) {
break Loop
}
if node.ParentUser.Lv > 2 && maxLvData != nil {
node.ParentUser.LevelWeight = maxLvData.LevelWeight
}
// 等级往上升则置0
maxLevelWeight, maxLv, peerRate, peerRateList, peerNum, sameProfit, sameProfitList = node.ParentUser.LevelWeight, node.ParentUser.Lv, 0, nil, 0, node.ParentUser.Profit, node.ParentUser.ProfitList
}


Notiek ielāde…
Atcelt
Saglabāt