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%品牌礼品券';