From bcd0fa539ac0f84f394b5007a43af66c77c8b880 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 26 Aug 2023 15:11:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E5=A4=8D=E8=BD=AC?= =?UTF-8?q?=E5=94=AE=E5=95=86=E5=93=81=E9=85=8D=E9=80=81=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/store/order/StoreOrderCreateRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index 1918e21d..995b4c49 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -112,9 +112,9 @@ class StoreOrderCreateRepository extends StoreOrderRepository if (count(array_unique($sourceIdArray)) > 1) { throw new ValidateException('转售商品数据异常'); } - $community = Db::name('Community')->where('community_id', $communityIdArray[0] ?? 0)->field('community_id, title, image')->fetchSql(false)->find(); + $community = Db::name('Community')->where('community_id', $sourceIdArray[0] ?? 0)->field('community_id, title, image')->fetchSql(false)->find(); if ($community) { - $deliverMethod = Db::name('resale')->where('community_id', $communityIdArray[0] ?? 0)->value('deliver_method'); + $deliverMethod = Db::name('resale')->where('community_id', $sourceIdArray[0] ?? 0)->value('deliver_method'); $deliverMethodArray = explode(',', $deliverMethod); } }