shish 3 лет назад
Родитель
Сommit
ea68e35a26
1 измененных файлов с 0 добавлено и 11 удалено
  1. 0 11
      biz-ghs/product/classes/ProductClass.php

+ 0 - 11
biz-ghs/product/classes/ProductClass.php

@@ -355,33 +355,22 @@ class ProductClass extends BaseClass
                     $cover = self::groupImg($shortCover);
                 }
             }
-            $ratio = isset($v['ratio']) && $v['ratio'] > 0 ? $v['ratio'] : 1;
             $list[$k]['cover'] = $cover;
             $list[$k]['prePrice'] = $v['price'] ?? 0;
             $list[$k]['itemName'] = $v['name'] ?? '';
-
             //今日特价、会员价
             $price = self::getFinalPrice($v, $level, $priceMap, $addPriceMap);
-
             //零售做特价时的原价
             if ($level == 0) {
                 $currentAddPrice = $v['skMore'] ?? 0;
                 $list[$k]['prePrice'] = bcadd($v['price'], $currentAddPrice, 2);
             }
-
             if (isset($v['discountPrice']) && $v['discountPrice'] > 0) {
                 //改价列表显示的散客价【重要】
                 $currentAddPrice = $v['skMore'] ?? 0;
                 $list[$k]['skPrice'] = bcadd($v['discountPrice'], $currentAddPrice, 2);
             }
-
             $list[$k]['price'] = $price;
-            $list[$k]['bigPrice'] = $price;
-            $smallRatio = $v['smallRatio'] ?? 0;
-            $smallPrice = bcdiv($price, $ratio, 2);
-            $smallPrice = bcmul($smallPrice, $smallRatio, 2);
-            $list[$k]['smallPrice'] = $smallPrice;
-
             $preSellDate = $v['presellDate'] ?? '';
             $preSellDateShow = [];
             if (!empty($preSellDate)) {