feat: 添加支付通知逻辑并优化订单处理
This commit is contained in:
parent
ea8ed066e4
commit
52e63cb05d
@ -84,6 +84,7 @@ class CommissionLogic extends BaseLogic
|
||||
if ($fees > 0) {
|
||||
$financeLogic->in($transaction_id, $fees, OrderEnum::ORDER_HANDLING_FEES, $order['store_id'], 0, 0, $order['pay_type']); //平台手续费
|
||||
$financeLogic->out($transaction_id, $fees, OrderEnum::ORDER_HANDLING_FEES, $order['store_id'], $order['staff_id'], 0, $order['pay_type']); //商户平台手续费支出
|
||||
$financeLogic->save();
|
||||
}
|
||||
return $fees;
|
||||
}
|
||||
@ -99,6 +100,7 @@ class CommissionLogic extends BaseLogic
|
||||
if ($fees > 0) {
|
||||
$financeLogic->in($transaction_id, $fees, OrderEnum::SUPPLIER_ORDER_OBTAINS, $order['store_id'], 0, 0, $order['pay_type']);
|
||||
$financeLogic->out($transaction_id, $fees, OrderEnum::SUPPLIER_ORDER_OBTAINS, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
||||
$financeLogic->save();
|
||||
}
|
||||
}
|
||||
/**
|
||||
@ -140,6 +142,7 @@ class CommissionLogic extends BaseLogic
|
||||
$financeLogic->in($transaction_id, $store_profit, OrderEnum::MERCHANT_ORDER_OBTAINS, $order['store_id'], 0, 0, $order['pay_type']); //平台手续费
|
||||
}
|
||||
}
|
||||
$financeLogic->save();
|
||||
return $store_profit;
|
||||
}
|
||||
|
||||
@ -162,6 +165,7 @@ class CommissionLogic extends BaseLogic
|
||||
$financeLogic->order=$order;
|
||||
$financeLogic->in($transaction_id, $fees, $enum, $order['store_id'], 0, 0, $order['pay_type']);
|
||||
$financeLogic->out($transaction_id, $fees, $enum, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
||||
$financeLogic->save();
|
||||
}
|
||||
return $fees;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user