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

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

View File

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