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

@@ -4,11 +4,8 @@ declare(strict_types=1);
namespace App\Amqp\Consumer;
use App\Constants\Common\OrderCode;
use App\Lib\Log;
use App\Model\Order;
use App\Service\Amqp\Refund\GoodOrderAllRefundService;
use App\Service\Amqp\Refund\RefundFactory;
use App\Service\Amqp\Refund\RefundService;
use App\Service\ServiceTrait\Api\OrderTrait;
use Exception;

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,
);
}