feat: 修改CommissionProductLogic计算佣金产品逻辑

This commit is contained in:
mkm 2024-07-26 15:32:24 +08:00
parent 83f81a3974
commit a92f33d490

View File

@ -40,7 +40,7 @@ class CommissionProductLogic extends BaseLogic
$data[] = [
'store_id' => $store_id,
'product_id' => $product_id,
'number' => bcmul($product['price'], $Distribution['store'], 2),
'number' => bcmul($product['purchase'], $Distribution['store'], 2),
'oid' => $oid,
'type' => 1,
'status' => 1,
@ -49,7 +49,7 @@ class CommissionProductLogic extends BaseLogic
$data[] = [
'store_id' => $store_id,
'product_id' => $product_id,
'number' => bcmul($product['price'], $Distribution['platform'],2),
'number' => bcmul($product['purchase'], $Distribution['platform'],2),
'oid' => $oid,
'type' => 2,
'status' => 1,
@ -59,7 +59,7 @@ class CommissionProductLogic extends BaseLogic
'store_id' => $store_id,
'product_id' => $product_id,
'other_uid' => $village_uid,
'number' => bcmul($product['price'], $Distribution['village'], 2),
'number' => bcmul($product['purchase'], $Distribution['village'], 2),
'oid' => $oid,
'type' => 3,
'status' => 1,
@ -69,7 +69,7 @@ class CommissionProductLogic extends BaseLogic
'store_id' => $store_id,
'product_id' => $product_id,
'other_uid' => $brigade_uid,
'number' => bcmul($product['price'], $Distribution['brigade'], 2),
'number' => bcmul($product['purchase'], $Distribution['brigade'], 2),
'oid' => $oid,
'type' => 4,
'status' => 1,
@ -79,7 +79,7 @@ class CommissionProductLogic extends BaseLogic
'store_id' => $store_id,
'product_id' => $product_id,
'other_uid' => $uid,
'number' => bcmul($product['price'], $Distribution['user'], 2),
'number' => bcmul($product['purchase'], $Distribution['user'], 2),
'oid' => $oid,
'type' => 0,
'status' => 1,
@ -90,7 +90,7 @@ class CommissionProductLogic extends BaseLogic
'store_id' => $store_id,
'product_id' => $product_id,
'other_uid' => $uid,
'number' => bcmul($product['price'], $Distribution['person_store'], 2),
'number' => bcmul($product['purchase'], $Distribution['person_store'], 2),
'oid' => $oid,
'type' => 5,
'status' => 1,