|
@@ -166,6 +166,12 @@ func CalReturnAmountAndRatioDsSecond(level, ownbuyReturnType, peerNum int, userT |
|
|
newFee = node.Profit |
|
|
newFee = node.Profit |
|
|
} |
|
|
} |
|
|
ratio := getVirtualCoinRatioDsOwn(userType, level, peerNum, opt.UserRate, coinId, 0) |
|
|
ratio := getVirtualCoinRatioDsOwn(userType, level, peerNum, opt.UserRate, coinId, 0) |
|
|
|
|
|
for k := range opt.VirtualCoinMoneyRatioList { |
|
|
|
|
|
if k == 0 { |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
|
|
|
opt.VirtualCoinMoneyRatioList[k] = "1" |
|
|
|
|
|
} |
|
|
amount := getCoinAmount(ratio, zhios_order_relate_utils.StrToInt(coinId), newFee, opt.VirtualCoinMoneyRatioList) |
|
|
amount := getCoinAmount(ratio, zhios_order_relate_utils.StrToInt(coinId), newFee, opt.VirtualCoinMoneyRatioList) |
|
|
if coinId == "0" { // |
|
|
if coinId == "0" { // |
|
|
commission = amount |
|
|
commission = amount |
|
|