处理推广佣金到账的错误

This commit is contained in:
luofei 2024-03-08 16:09:29 +08:00
parent d4ab5146d8
commit 6b759c4be4

View File

@ -794,8 +794,9 @@ class StoreOrderRepository extends BaseRepository
}
$promoterCommission = FinancialRecord::where('order_id', $order['order_id'])
->where('financial_type', 'promoter_commission')
->column('user_id,number');
->where('financial_type', 'commission_to_promoter')
->field('user_id,number')
->find();
if (!empty($promoterCommission)) {
$userBillRepository->incBill($promoterCommission['user_id'], 'brokerage', 'order_one', [
'link_id' => $order['order_id'],