feat : coupon

This commit is contained in:
2025-03-21 09:22:13 +08:00
parent 69f9f19262
commit 99a22b26d1
2 changed files with 2 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ class PlacePayService extends BaseService
private function checkPayOrder(): void
{
$this->payInfo = $this->payOrderModel->getInfoByOrderIdAndTypeAndRType($this->orderId,$this->orderType,$this->payType);
if (!empty($this->payInfo)) return;
if (empty($this->payInfo)) return;
if ($this->payInfo->status == PayCode::FINISH_PAY) throw new ErrException('该订单已支付,请确认后重试');
if ($this->payInfo->recharge_type != $this->payType) throw new ErrException('该订单调起支付失败');
if ($this->payInfo->order_type != $this->orderType) throw new ErrException('传值错误');