From 865e51a92cca4f37603d1af5c136bceba81ffcbe Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 28 Mar 2023 18:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svc/reward_commission.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svc/reward_commission.go b/svc/reward_commission.go index a22a724..f962d9c 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -536,6 +536,9 @@ func CalcCommission(uid, level, oldDiff, ownbuyReturnType int, fee, integralFee if opt.Mode == "lv_winery" { commission, _, amountList, ratioList = comm_plan.CalReturnAmountAndRatioToWinery(level, fee, integralFee, opt) } + if opt.Mode == "lv_ds_check" { + commission, _, amountList, ratioList = comm_plan.CalReturnAmountAndRatioDsOwn(level, ownbuyReturnType, 0, "own", fee, integralFee, opt) + } ratioListMap := convertList2Map(ratioList) for k, v := range amountList { amountList[k].Val = ratioListMap[v.Cid] * v.Val