From e18dba0d29651d3d8a859a4f4bbae79d3ff0d827 Mon Sep 17 00:00:00 2001 From: zyh Date: Thu, 24 Oct 2024 15:22:44 +0800 Subject: [PATCH] 123 --- app/store/service/order/Delivery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/store/service/order/Delivery.php b/app/store/service/order/Delivery.php index 66f2a93e..860f368e 100644 --- a/app/store/service/order/Delivery.php +++ b/app/store/service/order/Delivery.php @@ -50,11 +50,11 @@ class Delivery extends BaseService */ public function delivery(int $orderId, array $param): bool { - if(empty($param['expressId'])) { + if(empty($param['expressId'] && $param['delivery']!=20)) { $this->error = '物流公司不能为空'; return false; } - if (empty($param['expressNo'])) { + if (empty($param['expressNo'] && $param['delivery']!=20)) { $this->error = '物流单号不能为空'; return false; }