瀏覽代碼

更新

tags/v4.3.0
huangjiajun 1 年之前
父節點
當前提交
94098e8aad
共有 1 個檔案被更改,包括 12 行新增2 行删除
  1. +12
    -2
      lib/comm_plan/all.go

+ 12
- 2
lib/comm_plan/all.go 查看文件

@@ -550,8 +550,18 @@ func subsidyFeeDo(opt *PlanOpt, totalAmt, integralTotalAmt float64, lvuser *LvUs
return subsidyFee, subsidyRatio, isOnlySubsidyFee, subsidyFeeList, subsidyRatioList
}
if grade[lv].UserSubsidyType == "winery" { //酒庄模式 结算再管
totalAmt = 0
integralTotalAmt = 0
commission := lvuser.Profit
amountList := lvuser.ProfitList
var baseMoney = commission
if zhios_order_relate_utils.StrToInt(grade[lv].UserSubsidyBaseCoinId) > 0 {
for _, v := range amountList {
if v.Cid == grade[lv].UserSubsidyBaseCoinId {
baseMoney = v.Val
}
}
}
totalAmt = baseMoney
integralTotalAmt = baseMoney
}
subsidyFee, subsidyRatio, isOnlySubsidyFee, subsidyFeeList, subsidyRatioList = commSubsidy(opt, totalAmt, integralTotalAmt, lvuser, newLv, pvd, sysFee, integralSysFee, grade)
return subsidyFee, subsidyRatio, isOnlySubsidyFee, subsidyFeeList, subsidyRatioList


Loading…
取消
儲存