shish 3 лет назад
Родитель
Сommit
6d98560acb
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app-ghs/controllers/ProductController.php

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

@@ -224,9 +224,8 @@ class ProductController extends BaseController
                 $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
                 $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
             } elseif ($requestType == 'hasStockList') {
             } elseif ($requestType == 'hasStockList') {
                 //有库存的花材列表
                 //有库存的花材列表
-                $field = 'id,py,cover,name,ratio,cost,addPrice,classId,skMore,skPrice,itemId,smallUnit,smallRatio,bigUnit,smallUnit,ratioType,variety,price,stock,stockWarning,discountPrice,presell,presellDate';
+                $field = 'id,py,name,classId,itemId,price,stock';
                 $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
                 $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
-                $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
             } elseif ($requestType == 'changePrice') {
             } elseif ($requestType == 'changePrice') {
                 //修改价格列表
                 //修改价格列表
                 $field = 'id,py,cover,name,ratio,cost,addPrice,classId,skMore,skPrice,itemId,smallUnit,smallRatio,bigUnit,smallUnit,ratioType,variety,price,stock,stockWarning,discountPrice,presell,presellDate';
                 $field = 'id,py,cover,name,ratio,cost,addPrice,classId,skMore,skPrice,itemId,smallUnit,smallRatio,bigUnit,smallUnit,ratioType,variety,price,stock,stockWarning,discountPrice,presell,presellDate';