Browse Source

test

tags/v4.3.1
huangjiajun 1 year ago
parent
commit
ca4084a5be
2 changed files with 6 additions and 5 deletions
  1. +3
    -2
      lib/comm_plan/all.go
  2. +3
    -3
      svc/svc_integral_release.go

+ 3
- 2
lib/comm_plan/all.go View File

@@ -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,


+ 3
- 3
svc/svc_integral_release.go View File

@@ -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 {


Loading…
Cancel
Save