From 5161573844fbb341abfbb45a9eda74256051f281 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Wed, 22 May 2024 09:38:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=8F=96=E6=B6=88=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/model/Order.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/api/model/Order.php b/app/api/model/Order.php index a6f6c54c..079bcf70 100644 --- a/app/api/model/Order.php +++ b/app/api/model/Order.php @@ -172,6 +172,17 @@ class Order extends OrderModel $this->error = $orderSource->getError(); return false; } + //订单已取消提示 + if ($this['order_status'] == OrderStatusEnum::CANCELLED) { + $this->error = '订单已取消成功,无需重复操作'; + return false; + } + + if ($this['order_status'] == OrderStatusEnum::APPLY_CANCEL) { + $this->error = '订单已申请取消,需等待后台审核'; + return false; + } + // 订单是否已支付 $isPay = $this['pay_status'] == PayStatusEnum::SUCCESS; // 提示信息