diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php index f5d94186c..4c9916f54 100644 --- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php +++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php @@ -737,7 +737,7 @@ class BeforehandOrderLogic extends BaseLogic $find = WarehouseOrder::where('id', $order['outbound_id'])->find(); $order['order_id'] = $find['code']; $order['pay_price'] = $find['total_price']; - if ($params['type'] == 3) { + if (!empty($params['type']) &&$params['type'] == 3) { $file_path = $order_info->exportWithoutPrice($data, $order, $other_data); } else { $file_path = $order_info->export($data, $order, $other_data);