|
|
@@ -132,11 +132,9 @@ class ItemController extends BaseController
|
|
|
$level = 0;
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
|
|
|
$itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
|
|
|
-
|
|
|
- $data = ProductService::assembleData($classIds, $itemInfoData, true);
|
|
|
-
|
|
|
+ $respond = ProductService::assembleData($classIds, $itemInfoData, true);
|
|
|
+ $data = $respond['classItem'] ?? [];
|
|
|
CustomClass::buildRelation($this->shop, $this->user);
|
|
|
-
|
|
|
util::success($data);
|
|
|
}
|
|
|
}
|