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

@@ -11,6 +11,7 @@ declare(strict_types=1);
namespace App\Service\Api\Order;
use App\Constants\Common\OrderCode;
use App\Constants\Common\RefundCode;
use App\Exception\ErrException;
use App\Model\Order;
use App\Model\PayOrder;
@@ -55,7 +56,7 @@ class RefundOrderService extends BaseService
if (empty($payInfo)) throw new ErrException('订单支付信息不存在');
//立即取消
$this->joinRefundQueue($orderId, $type, (float)$payInfo->pay_money, '用户主动取消订单');
$this->joinRefundQueue($orderId, RefundCode::FULL_GOOD_REFUND, '用户主动取消订单');
return $this->return->success();
}