From 018c5e27eb196a1b602ac2bb065d15cfa7275f67 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 2 Jun 2022 16:08:24 +0800 Subject: [PATCH] setter --- app/repository/OrderRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/repository/OrderRepository.php b/app/repository/OrderRepository.php index 6bf6a77..e15d29b 100644 --- a/app/repository/OrderRepository.php +++ b/app/repository/OrderRepository.php @@ -921,7 +921,7 @@ class OrderRepository extends Repository $accountId = $accountId == 0 ? $order['account_id'] : $accountId; - if ($order['status'] != self::STATUS_SHIPPED) { + if (in_array($order['status'] ,[self::STATUS_SHIPPED,self::STATUS_ARRIVED])) { throw new RepositoryException('当前订单状态不支持收货操作'); }