From c91434d54fa432110ee403b449c678bdde26b7ff Mon Sep 17 00:00:00 2001 From: "DESKTOP-GMUNQ1B\\Administrator" <604446095@qq.com> Date: Fri, 6 Dec 2024 15:47:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=BB=84=E4=BB=B7=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/order/OrderLogic.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index ed32dbd2..8d294ac1 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -102,7 +102,9 @@ class OrderLogic extends BaseLogic $find = StoreBranchProduct::where(['product_id' => $v['product_id'], 'store_id' => $params['store_id']])->field($field)->find(); } else { $find = StoreProduct::where(['id' => $v['product_id']])->field($field)->find(); - $find = StoreProductGroupPrice::resetProductPrice($find, $user['user_ship']); + if (!empty($user['user_ship'])) { + $find = StoreProductGroupPrice::resetProductPrice($find, $user['user_ship']); + } } if (!$find) { throw new BusinessException('商品不存在');