Browse Source

add reverse:for v1.4.3 积分分佣计算修复

tags/v1.4.3
huangjiajun 2 years ago
parent
commit
2c58f660d4
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      svc/reward_commission.go

+ 4
- 1
svc/reward_commission.go View File

@@ -16,7 +16,10 @@ import (
func GetRewardCommission(engine *xorm.Engine, rmd *md.CommissionParam, isShare bool, userId, provider, masterId string, returnAllLevel bool, extraData map[string]string, virType string) (float64, float64, float64, float64, *comm_plan.LvUser, error) {

if virType == "commission" {
rmd.GoodsPrice = rmd.Commission
rmd.PaidPrice = rmd.Commission
if zhios_order_relate_utils.InArr(provider, []string{md.PVD_TB, md.PVD_TM, md.PVD_PDD, md.PVD_SN, md.PVD_KL, md.PVD_JD}) == false {
rmd.GoodsPrice = rmd.Commission
}
}
if rmd.Oid == "" {
rmd.Oid = "1"


Loading…
Cancel
Save