diff --git a/lib/comm_plan/all.go b/lib/comm_plan/all.go index b67f527..e2244de 100644 --- a/lib/comm_plan/all.go +++ b/lib/comm_plan/all.go @@ -36,8 +36,9 @@ func CalReturnAmountAndRatio(level, ownbuyReturnType, peerNum int, userType stri amount = 0 } amountList = append(amountList, &VirtualCoinCommission{ - Cid: coinId, - Val: amount, + Cid: coinId, + Val: amount, + ProfitBili: zhios_order_relate_utils.AnyToFloat64(ratio), }) ratioList = append(ratioList, &VirtualCoinCommission{ Cid: coinId, diff --git a/svc/svc_integral_release.go b/svc/svc_integral_release.go index 897039a..403e059 100644 --- a/svc/svc_integral_release.go +++ b/svc/svc_integral_release.go @@ -14,10 +14,10 @@ import ( func IntegralRelease(engine *xorm.Engine, uid, level int, returnAllLevel bool, IsShowExtend, pvd string, user *model.User, comf float64, price string, cfg *comm_plan.PlanOpt, isGoods string, commArr map[string]string, virtualCoinMoneyRate map[int]string) (pvdFee, sysFee, subsidyFee float64, lvUser *comm_plan.LvUser, err error) { //佣金扣除抽成后 - fee, pvdFee, sysFee := CommFee(comf, cfg, "commission", isGoods) + fee, _, pvdFee, sysFee := CommFee(comf, cfg, "commission", isGoods) ////积分扣除抽成后 - integralFee, _, _ := CommFee(zhios_order_relate_utils.StrToFloat64(price), cfg, "integral", isGoods) - integralFeeCom, _, _ := CommFee(comf, cfg, "integral", isGoods) + integralFee, _, _, _ := CommFee(zhios_order_relate_utils.StrToFloat64(price), cfg, "integral", isGoods) + integralFeeCom, _, _, _ := CommFee(comf, cfg, "integral", isGoods) //常规级差 var userRelationship *[]md.UserRelation if returnAllLevel {