feat : coupon

This commit is contained in:
2025-03-21 15:14:43 +08:00
parent a0dd51fc68
commit 11a36ece80
14 changed files with 644 additions and 16 deletions

View File

@@ -44,19 +44,17 @@ trait OrderChangeStatusTrait
/**
* @param int $orderId
* @param int $type
* @param float|int $amount amount = 0 全部 amount > 0 部分
* @param int $type refundCode
* @param string $reason
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
protected function joinRefundQueue(int $orderId, int $type, float|int $amount = 0, string $reason = '系统自动'): void
protected function joinRefundQueue(int $orderId, int $type, string $reason = '系统自动'): void
{
$message = new RefundOrderProducer([
'order_id' => $orderId,
'type' => $type,
'amount' => $amount,
'reason' => $reason
]);
$producer = ApplicationContext::getContainer()->get(Producer::class);