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