@@ -152,10 +152,9 @@ class ProductController extends BaseController
$field = 'id,cover,name,cost,itemId,classId,property,skPrice,skMore,addPrice,variety,price,discountPrice,skDiscountPrice,stock,stockWarning,presell,ratioType,smallRatio,smallUnit,bigUnit,ratio,actualSold';
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
$itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
-
- $data = ProductService::assembleData($classIds, $itemInfoData, true);
- util::success($data);
+ $respond = ProductService::assembleData($classIds, $itemInfoData, true);
+ $classItem = $respond['classItem'] ?? [];
+ util::success($classItem);
}
//当前门店所有花材分类