feat: 修改CommissionProductLogic以处理不同类型的用户

This commit is contained in:
mkm 2024-07-27 16:35:12 +08:00
parent 46fdf20b47
commit 8d0b39c8e0

View File

@ -74,12 +74,17 @@ class CommissionProductLogic extends BaseLogic
'oid' => $order['id'],
'type' => 4,
'status' => 1,
];
];
//会员
if ($user_ship == 1) {
$uid = $order['spread_uid'];
} else {
$uid = 0;
}
$data[] = [
'store_id' => $order['store_id'],
'product_id' => $find['product_id'],
'other_uid' => $order['spread_uid'],
'other_uid' => $uid,
'number' => bcmul($total_price, $Distribution['user'], 2),
'oid' => $order['id'],
'type' => 0,