feat : refund
This commit is contained in:
@@ -365,15 +365,17 @@ trait OrderTrait
|
||||
/**
|
||||
* @param int $orderId
|
||||
* @param int $orderStatus
|
||||
* @param array $refundGoodIds
|
||||
* @return void
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
protected function sendStockMq(int $orderId,int $orderStatus): void
|
||||
protected function sendStockMq(int $orderId,int $orderStatus,array $refundGoodIds = []): void
|
||||
{
|
||||
$message = new OrderGoodStockProducer([
|
||||
'order_id' => $orderId,
|
||||
'type' => $orderStatus
|
||||
'type' => $orderStatus,
|
||||
'refund_goods' => $refundGoodIds
|
||||
]);
|
||||
$producer = ApplicationContext::getContainer()->get(Producer::class);
|
||||
$producer->produce($message);
|
||||
|
||||
Reference in New Issue
Block a user