From 16183a1139e70ae43afff7137faf6df3a2773e45 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Tue, 13 Dec 2022 16:59:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=86=E7=BB=84=E5=A4=9A?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=9C=BA=E6=99=AF=E4=B8=8B=E4=BB=85=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=BF=AB=E9=80=92=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/OrderSplitService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/service/OrderSplitService.php b/app/service/OrderSplitService.php index 0e5661694..4226b4575 100644 --- a/app/service/OrderSplitService.php +++ b/app/service/OrderSplitService.php @@ -55,6 +55,12 @@ class OrderSplitService // 商品仓库集合 $warehouse_goods = self::GoodsWarehouseAggregate($params); + // 存在多个订单,但是订单模式非快递则设置为快递模式 + if(count($warehouse_goods) > 1 && $params['site_model'] != 0) + { + $params['site_model'] = 0; + $params['common_site_type'] = 0; + } // 分组商品基础处理 $data = self::GroupGoodsBaseHandle($warehouse_goods, $params);