Browse Source

v1.0.8

tags/v1.0.8
huangjiajun 2 years ago
parent
commit
e2610116c3
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      lib/comm_plan/all.go

+ 6
- 0
lib/comm_plan/all.go View File

@@ -394,6 +394,12 @@ func teamDiffMoneyV2(profitList []*VirtualCoinCommission, payMode, isOnlySubsidy
func subsidyFeeDo(opt *PlanOpt, totalAmt, integralTotalAmt float64, lvuser *LvUser, newLv int, pvd string, sysFee, integralSysFee float64) (subsidyFee, subsidyRatio float64, isOnlySubsidyFee int, subsidyFeeList, subsidyRatioList []*VirtualCoinCommission) { func subsidyFeeDo(opt *PlanOpt, totalAmt, integralTotalAmt float64, lvuser *LvUser, newLv int, pvd string, sysFee, integralSysFee float64) (subsidyFee, subsidyRatio float64, isOnlySubsidyFee int, subsidyFeeList, subsidyRatioList []*VirtualCoinCommission) {
grade := opt.UserRate grade := opt.UserRate
lv := lvuser.Lv lv := lvuser.Lv
if grade == nil {
return subsidyFee, subsidyRatio, isOnlySubsidyFee, subsidyFeeList, subsidyRatioList
}
if grade[lv] == nil {
return subsidyFee, subsidyRatio, isOnlySubsidyFee, subsidyFeeList, subsidyRatioList
}
if grade[lv].UserSubsidyType == "winery" { //酒庄模式 换一下计算基数 if grade[lv].UserSubsidyType == "winery" { //酒庄模式 换一下计算基数
commission := lvuser.Profit commission := lvuser.Profit
amountList := lvuser.ProfitList amountList := lvuser.ProfitList


Loading…
Cancel
Save