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