shish 3 anni fa
parent
commit
bd881ecdd0
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app-hd/controllers/ProductController.php

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

@@ -307,7 +307,8 @@ class ProductController extends BaseController
             }
 
             $level = $ghs['giveLevel'] ?? 0;
-            $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
+            $field = 'id,py,cover,name,ratio,skMore,itemId,smallUnit,smallRatio,presellDate,bigUnit,ratioType,variety,price,stock,bigNum,smallNum,stockWarning,discountPrice,presell,prePrice,presellDateShow,bigPrice,smallPrice';
+            $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
             $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
 
             $data = ProductService::assembleData($classIds, $itemInfoData, true);