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 ) {