From 03b30a256958f8b8ea6a319daa19b7f93a6f9d53 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 16 May 2024 17:55:21 +0800 Subject: [PATCH] YS --- app/api/model/OrderRefund.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/model/OrderRefund.php b/app/api/model/OrderRefund.php index 0bae7fa6..f2de8a6c 100644 --- a/app/api/model/OrderRefund.php +++ b/app/api/model/OrderRefund.php @@ -172,7 +172,7 @@ class OrderRefund extends OrderRefundModel public function delivery(array $data): bool { if ( - ($this['type'] != RefundTypeEnum::RETURN || $this['type'] != RefundTypeEnum::EXCHANGE) + !in_array($this['type'],[RefundTypeEnum::RETURN,RefundTypeEnum::EXCHANGE]) || $this['audit_status'] != AuditStatusEnum::REVIEWED || $this['is_user_send'] != 0 ) {