From dfdb3256dcb0c2e67d8385d8a89688bfc6165a22 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 4 Jan 2025 19:15:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(app):=20=E4=BF=AE=E5=A4=8D=E9=A2=84?= =?UTF-8?q?=E5=94=AE=E8=AE=A2=E5=8D=95=E5=AF=BC=E5=87=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在导出预售订单时,增加了对$type$ 的非空判断 - 确保当$type$ 为空时,不会错误地执行无价格导出逻辑 --- app/admin/logic/beforehand_order/BeforehandOrderLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);