diff --git a/app/common/logic/CommissionProductLogic.php b/app/common/logic/CommissionProductLogic.php index f236bb3f..561dd3e7 100644 --- a/app/common/logic/CommissionProductLogic.php +++ b/app/common/logic/CommissionProductLogic.php @@ -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,