request->get(); $shopId = $get['shopId']??0; $classIds = ItemClassClass::getGhsItemClassAll($this->mainId); $where['mainId'] = $this->mainId; $where['delStatus'] = 0; $itemInfoData = ProductClass::getAllByCondition($where,['actualSold'=>SORT_DESC,'inTurn'=>SORT_DESC],"*"); $itemInfoData = ProductClass::groupProductInfo($itemInfoData); $respond = ProductService::assembleData($classIds, $itemInfoData, true); $classItem = $respond['classItem'] ?? []; ShopService::totalViewPlus($shopId); util::success($classItem); } }