shish 2 лет назад
Родитель
Сommit
c45433ec2f
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      biz-ghs/product/services/ProductService.php

+ 3 - 3
biz-ghs/product/services/ProductService.php

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