Sfoglia il codice sorgente

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

tags/v1.4.3
huangjiajun 2 anni fa
parent
commit
2c58f660d4
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      svc/reward_commission.go

+ 4
- 1
svc/reward_commission.go Vedi 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"


Caricamento…
Annulla
Salva