Browse Source

更新

tags/v4.3.1
huangjiajun 1 year ago
parent
commit
528d29756b
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      lib/comm_plan/winery_adv.go

+ 5
- 3
lib/comm_plan/winery_adv.go View File

@@ -168,7 +168,7 @@ Loop:
node.ParentUser.Profit = 0
count := len(grade[maxLv].PeerRate)
if grade[maxLv].NewPeerList != nil {
count = len(grade[maxLv].PeerRateList)
count = len(grade[maxLv].NewPeerList)
}
var isBreak bool
zeroList := make(map[string]struct{})
@@ -414,8 +414,10 @@ func getVirtualCoinRatioWineryAdv(typ string, level, peerNum int, grade map[int]
ok := false
switch typ {
case "same_lv":
ratio, ok = grade[level].PeerRateList[peerNum][coinId]
ratio = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(ratio)/100, 4)
if grade[level].NewPeerList != nil && len(grade[level].NewPeerList) > 0 {
ratio, ok = grade[level].NewPeerList[peerNum][coinId]
ratio = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(ratio)/100, 4)
}
case "to_extend":
ratio, ok = grade[level].ToExtendList[coinId]
ratio = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(ratio)/100, 4)


Loading…
Cancel
Save