feat : refund

This commit is contained in:
2025-02-24 15:08:44 +08:00
parent 27a6ad3e2e
commit d0409088a6
2 changed files with 5 additions and 8 deletions

View File

@@ -184,7 +184,7 @@ class RefundService
]);
}
protected function refund()
protected function refund(): void
{
$rechargeService = match ($this->refundInfo->refund_type)
{
@@ -193,13 +193,13 @@ class RefundService
};
$rechargeService->setConfig();
$rechargeService->setNotify();
$rechargeService->setRefundNotify();
$payData = $rechargeService->pay(
$rechargeService->refund(
$this->refundAmount,
(float)$this->orderInfo->actual_price,
$this->request->input('body','订单支付'),
$this->orderInfo->order_no,
$this->userId
$this->refundInfo->refund_no,
);
}