6
0
Fork 0

调整发货提示报错

release
vine_liutk 2021-12-23 21:24:31 +08:00
parent 0e609df60f
commit bca72afc6e
1 changed files with 1 additions and 1 deletions

View File

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