From 4ca768f2e09709b9859f8d4a60c64484dc8d7792 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Mon, 26 Feb 2024 21:51:15 +0800 Subject: [PATCH] 1 --- app/store/model/Order.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/store/model/Order.php b/app/store/model/Order.php index e0adc7dc..0549d70e 100644 --- a/app/store/model/Order.php +++ b/app/store/model/Order.php @@ -326,8 +326,7 @@ class Order extends OrderModel */ public function updateDelivery(array $data): bool { - if ($this['pay_status'] != PayStatusEnum::SUCCESS - || $this['delivery_status'] == DeliveryStatusEnum::DELIVERED || $this['delivery_type'] != 10) { + if ($this['delivery_status'] == DeliveryStatusEnum::DELIVERED || $this['delivery_type'] != 10) { $this->error = "订单号[{$this['order_no']}]不满足修改条件!"; return false; }