From b2e51cbf5f6167fe98b492b407089b88b6910602 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 14 Mar 2025 16:56:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E8=B0=83=E6=95=B4=E5=95=86?= =?UTF-8?q?=E5=93=81=E4=BB=B7=E6=A0=BC=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉原代码中处理活动价的部分 - 新增高级会员价处理逻辑 - 修改价格显示为成本价 - 更新商品名称后缀为"高级会员价" --- app/admin/lists/store_product/StoreProductLists.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/admin/lists/store_product/StoreProductLists.php b/app/admin/lists/store_product/StoreProductLists.php index ae53e82c6..b2c5095ab 100644 --- a/app/admin/lists/store_product/StoreProductLists.php +++ b/app/admin/lists/store_product/StoreProductLists.php @@ -152,11 +152,13 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa $item['status_msg'] = '下架|不常用|是否有替换'; } if ($order_type == 2) { - $price = StoreProductGroupPrice::where('group_id', 42)->where('product_id', $item['product_id'])->value('price'); - if ($price > 0) { - $item['price'] = $price; - $item['store_name'] = $item['store_name'] . '|活动价'; - } + // $price = StoreProductGroupPrice::where('group_id', 42)->where('product_id', $item['product_id'])->value('price'); + // if ($price > 0) { + // $item['price'] = $price; + // $item['store_name'] = $item['store_name'] . '|活动价'; + // } + $item['price'] = $item['cost']; + $item['store_name'] = $item['store_name'] . '|高级会员价'; }elseif($is_true == true && $userShip>0){ $item['price'] = $item['vip_price']; $item['store_name'] = $item['store_name'] . '|会员价';