From bca72afc6e1b9badf26d38f858275433c984a98a Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Thu, 23 Dec 2021 21:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=91=E8=B4=A7=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Services/OrderPackageService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Admin/Services/OrderPackageService.php b/app/Admin/Services/OrderPackageService.php index 5cab5294..a4efee90 100644 --- a/app/Admin/Services/OrderPackageService.php +++ b/app/Admin/Services/OrderPackageService.php @@ -25,7 +25,7 @@ class OrderPackageService if (!($order->isWaitShipping() || $order->isShipping())) { throw new BizException('订单状态异常,无法发货'); } - if (count($params['packages']) <= 0) { + if (!isset($params['packages']) || count($params['packages']) <= 0) { throw new BizException('请选择发货商品'); } foreach ($params['packages'] as $item) {