From 5bb7fcd0e61be9a3883433225a17869cf45ba0e9 Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Tue, 21 Jan 2025 16:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E8=90=A5=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/store_product_group_price/StoreProductGroupPrice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/model/store_product_group_price/StoreProductGroupPrice.php b/app/common/model/store_product_group_price/StoreProductGroupPrice.php index 7807a0432..37c6c49b8 100644 --- a/app/common/model/store_product_group_price/StoreProductGroupPrice.php +++ b/app/common/model/store_product_group_price/StoreProductGroupPrice.php @@ -46,7 +46,7 @@ class StoreProductGroupPrice extends BaseModel { if ($shopId > 0 && SystemStore::isSelfOperate($shopId) && $userShip > 0) { foreach ($productList as &$item) { - $item['price'] = $item['vip_price']; + $item['price'] = $item['vip_price'] > 0 ? $item['vip_price'] : $item['price']; } return $productList; } else {