소스 검색

test

tags/v4.3.1
huangjiajun 1 년 전
부모
커밋
ca4084a5be
2개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. +3
    -2
      lib/comm_plan/all.go
  2. +3
    -3
      svc/svc_integral_release.go

+ 3
- 2
lib/comm_plan/all.go 파일 보기

@@ -36,8 +36,9 @@ func CalReturnAmountAndRatio(level, ownbuyReturnType, peerNum int, userType stri
amount = 0 amount = 0
} }
amountList = append(amountList, &VirtualCoinCommission{ amountList = append(amountList, &VirtualCoinCommission{
Cid: coinId,
Val: amount,
Cid: coinId,
Val: amount,
ProfitBili: zhios_order_relate_utils.AnyToFloat64(ratio),
}) })
ratioList = append(ratioList, &VirtualCoinCommission{ ratioList = append(ratioList, &VirtualCoinCommission{
Cid: coinId, Cid: coinId,


+ 3
- 3
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) { 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 var userRelationship *[]md.UserRelation
if returnAllLevel { if returnAllLevel {


불러오는 중...
취소
저장