Commit 11196bee authored by luhongguang's avatar luhongguang

update:分销返现多少钱

parent 3e00d1a0
...@@ -712,6 +712,10 @@ class GoodsService ...@@ -712,6 +712,10 @@ class GoodsService
$distributorList = DistributorService::getDistributorInfo($params["user_id"]); $distributorList = DistributorService::getDistributorInfo($params["user_id"]);
if (!empty($distributorList)) { if (!empty($distributorList)) {
$data["goods_info"]["is_tuanzhang"] = true; $data["goods_info"]["is_tuanzhang"] = true;
if (!empty($runningMarketing)) {
//分销返现多少钱
$data["goods_info"]["cash_back"] = $runningMarketing[$sku["goods_sku_id"]] * $data["goods_info"]["price"];
}
} }
} }
} }
...@@ -808,6 +812,7 @@ class GoodsService ...@@ -808,6 +812,7 @@ class GoodsService
if (!empty($distributorList)) { if (!empty($distributorList)) {
$data["goods_info"]["is_tuanzhang"] = true; $data["goods_info"]["is_tuanzhang"] = true;
if (!empty($runningMarketing)) { if (!empty($runningMarketing)) {
//分销返现多少钱
$data["goods_info"]["cash_back"] = $runningMarketing[$params["goods_sku_id"]] * $data["goods_info"]["price"]; $data["goods_info"]["cash_back"] = $runningMarketing[$params["goods_sku_id"]] * $data["goods_info"]["price"];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment