From c8560fafdc99c5fe979ab7d9d97d6df4edf17a35 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 23 Jan 2025 19:12:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(admin):=20=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E9=A2=84=E8=AE=A2=E5=8D=95=E6=9B=B4=E6=96=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 BeforehandOrderCartInfoLogic 类中的代码中,注释掉了处理预订单更新失败的代码块。这次修改可能是为了暂时跳过预订单更新过程中的错误处理,或者是为了调试目的。 --- .../BeforehandOrderCartInfoLogic.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php index 79616754..666e6ac9 100644 --- a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php +++ b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php @@ -419,9 +419,9 @@ class BeforehandOrderCartInfoLogic extends BaseLogic $attrs['is_buying'] = 1; } $result = BeforehandOrder::where('id', $params['bhoid'])->where('warehousing_id', 0)->where('is_warehousing', 0)->update($attrs); - if (!$result) { - throw new BusinessException('入库失败,预订单更新出错'); - } + // if (!$result) { + // throw new BusinessException('入库失败,预订单更新出错'); + // } } Db::commit(); return true;