|
@@ -265,8 +265,8 @@ class ProductService extends BaseService
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
|
|
|
$itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
|
|
$itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
|
|
|
|
|
|
|
|
- $data = self::assembleData($classIds, $itemInfoData, true);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ $respond = self::assembleData($classIds, $itemInfoData, true);
|
|
|
|
|
+ $data = $respond['classItem'] ?? [];
|
|
|
$formatData = [];
|
|
$formatData = [];
|
|
|
|
|
|
|
|
foreach ($data as $key => $class) {
|
|
foreach ($data as $key => $class) {
|
|
@@ -401,7 +401,7 @@ class ProductService extends BaseService
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
|
|
|
$itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
|
|
$itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
|
|
|
$respond = self::assembleData($classIds, $itemInfoData, true);
|
|
$respond = self::assembleData($classIds, $itemInfoData, true);
|
|
|
- $data = $respond['classItem']??[];
|
|
|
|
|
|
|
+ $data = $respond['classItem'] ?? [];
|
|
|
|
|
|
|
|
$formatData = [];
|
|
$formatData = [];
|
|
|
|
|
|