feat: 修改购物车列表价格计算逻辑

This commit is contained in:
mkm 2024-07-22 13:56:30 +08:00
parent 5b95bfcd49
commit 5c24c8713e

View File

@ -80,7 +80,7 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists
if($off_activity==1){
$this->activity_price = bcadd(bcmul($find['cost'],$item['cart_num'], 2), $this->activity_price, 2);
}
if ($off_activity == 0 && $user_ship == 5 && $item['top_cate_id'] == 15189) {
if ($off_activity == 0 && $user_ship == 5 && $find['top_cate_id'] == 15189) {
$find['price']=$find['cost'];
}
$item['goods_total_price'] = bcmul($item['cart_num'], $find['price'], 2);