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

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

@@ -136,7 +136,11 @@ class ProductClass extends BaseClass
             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($price, $currentAddPrice, 2);
             }