|
|
@@ -973,7 +973,11 @@ func CalcCommission(uid, level, oldDiff, ownbuyReturnType int, fee, integralFee |
|
|
|
|
|
|
|
ratioListMap := convertList2Map(ratioList) |
|
|
|
for k, v := range amountList { |
|
|
|
amountList[k].Val = ratioListMap[v.Cid] * v.Val |
|
|
|
if v.Cid == "0" { |
|
|
|
amountList[k].Val = v.Val |
|
|
|
} else { |
|
|
|
amountList[k].Val = ratioListMap[v.Cid] * v.Val |
|
|
|
} |
|
|
|
} |
|
|
|
//重新计算佣金 |
|
|
|
return pvdFee, sysFee, subsidyFee, &comm_plan.LvUser{ProfitBili: profitBili, FirstFee: feeFirst, IntegralFirstFee: integralFeeFirst, TikTokOwnSubsidyFeeList: tikTokSubsidyFeeList, OwnSubsidyFeeList: subsidyFeeList, Uid: uid, Lv: level, OldDiff: oldDiff, Profit: commission, ProfitList: amountList, Diff: 0}, nil |
|
|
|