From 48f9e077878d92a8f61482e2cdfdb4ff5c54473e Mon Sep 17 00:00:00 2001 From: "DESKTOP-GMUNQ1B\\Administrator" <604446095@qq.com> Date: Thu, 19 Dec 2024 16:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=85=A5=E5=BA=93=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=87=87=E8=B4=AD=E5=8D=95=E9=87=87=E8=B4=AD=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BeforehandOrderCartInfoLogic.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php index 459ff7537..1940ed98d 100644 --- a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php +++ b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php @@ -244,7 +244,11 @@ class BeforehandOrderCartInfoLogic extends BaseLogic WarehouseProductLogic::add($data); PurchaseProductOffer::where('id', $v['id'])->update(['status' => 1, 'is_storage' => 1]); } - BeforehandOrder::where('id', $params['bhoid'])->update(['warehousing_id' => $res['id'],'is_warehousing'=>1]); + $attrs = ['warehousing_id' => $res['id'],'is_warehousing'=>1]; + if ($beforehandOrder['order_type'] == 7) { + $attrs['is_buying'] = 1; + } + BeforehandOrder::where('id', $params['bhoid'])->update($attrs); Db::commit(); return true; } catch (\Throwable $e) {