|
|
|
@ -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; |
|
|
|
|
// 提示信息 |
|
|
|
|