From 9f36a0e9688e66cbb1a6ee331c03e419b068bb7c Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Sat, 6 Jul 2024 10:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E5=A4=84=E7=90=86=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E5=89=8D=E7=AB=AF=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/lists/cart/CartList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/store/lists/cart/CartList.php b/app/store/lists/cart/CartList.php index 7c06f7e76..e84943654 100644 --- a/app/store/lists/cart/CartList.php +++ b/app/store/lists/cart/CartList.php @@ -55,7 +55,8 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists return $item; }) ->toArray(); - $off_activity = Config::where('name', 'off_activity')->value('value'); +// $off_activity = Config::where('name', 'off_activity')->value('value'); + $off_activity = 0; $this->off_activity = $off_activity; foreach ($list as $key => &$item) { $find = StoreBranchProduct::where(['product_id' => $item['product_id'], 'store_id' => $item['store_id']]) @@ -107,7 +108,6 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists 'pay_price' => $this->total_price ]; if ($this->off_activity == 1) { - $this->activity_price = $this->total_price; $data['pay_price'] = $this->activity_price; if ($this->activity_price < 500) { $data['msg'] = '还差' . bcsub(500, $this->activity_price, 2) . '元可获得10%品牌礼品券';