处理推广佣金到账的错误
This commit is contained in:
parent
d4ab5146d8
commit
6b759c4be4
@ -794,8 +794,9 @@ class StoreOrderRepository extends BaseRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
$promoterCommission = FinancialRecord::where('order_id', $order['order_id'])
|
$promoterCommission = FinancialRecord::where('order_id', $order['order_id'])
|
||||||
->where('financial_type', 'promoter_commission')
|
->where('financial_type', 'commission_to_promoter')
|
||||||
->column('user_id,number');
|
->field('user_id,number')
|
||||||
|
->find();
|
||||||
if (!empty($promoterCommission)) {
|
if (!empty($promoterCommission)) {
|
||||||
$userBillRepository->incBill($promoterCommission['user_id'], 'brokerage', 'order_one', [
|
$userBillRepository->incBill($promoterCommission['user_id'], 'brokerage', 'order_one', [
|
||||||
'link_id' => $order['order_id'],
|
'link_id' => $order['order_id'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user