调整发货提示报错
parent
0e609df60f
commit
bca72afc6e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue