临时处理活动前端关闭

This commit is contained in:
liu 2024-07-06 10:03:18 +08:00
parent 5f268a60f5
commit 9f36a0e968

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