shish 3 lat temu
rodzic
commit
ef45cad478

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -228,7 +228,7 @@ class ProductController extends BaseController
                 $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
             } elseif ($requestType == 'changePrice') {
                 //修改价格列表
-                $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,discountPrice,variety,price,stock,presell';
+                $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,discountPrice,skMore,variety,price,stock,presell';
                 $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
                 $itemInfoData = ProductClass::changePriceGroup($itemInfoData, $level);
             } elseif ($requestType == 'itemList') {

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

@@ -184,7 +184,6 @@ class ProductClass extends BaseClass
                 $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);
             }