订单取消提示

es
ztt 8 months ago
parent bb722423b1
commit 5161573844
  1. 11
      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;
// 提示信息

Loading…
Cancel
Save