feat : refund

This commit is contained in:
2025-03-27 10:58:00 +08:00
parent 7f4d6ca0d0
commit c4bc83f9e2
5 changed files with 16 additions and 12 deletions

View File

@@ -52,16 +52,16 @@ trait OrderChangeStatusTrait
* @param int $orderId
* @param int $type refundCode
* @param string $reason
* @param int $adminId
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
protected function joinRefundQueue(int $orderId, int $type, string $reason = '系统自动'): void
protected function joinRefundQueue(int $orderId, int $type, string $reason = '系统自动',int $adminId = 0): void
{
$message = new RefundOrderProducer([
'order_id' => $orderId,
'type' => $type,
'reason' => $reason
'reason' => $reason,
'admin_id' => $adminId
]);
// $producer = ApplicationContext::getContainer()->get(Producer::class);
$this->producer->produce($message);