|
|
@@ -22,7 +22,7 @@ class GoodsCategoryService extends BaseService
|
|
|
return $data;
|
|
|
}
|
|
|
$ids = array_column($list, 'gId');
|
|
|
- $list = GoodsService::getAllByCondition(['id' => ['in', $ids]], 'inTurn DESC', 'goodsName,shopImg,price,sold,id,createTime,status,inTurn');
|
|
|
+ $list = GoodsService::getAllByCondition(['id' => ['in', $ids]], 'inTurn DESC', '*');
|
|
|
$data['list'] = GoodsClass::groupGoodsBaseInfo($list);
|
|
|
return $data;
|
|
|
}
|
|
|
@@ -47,7 +47,7 @@ class GoodsCategoryService extends BaseService
|
|
|
$categoryGoods[$cId][] = $val['gId'];
|
|
|
}
|
|
|
//查出商品信息
|
|
|
- $goodsInfoList = GoodsService::getAllByCondition(['id' => ['in', $goodsList]], 'inTurn DESC', 'goodsName,shopImg,price,sold,id', 'id');
|
|
|
+ $goodsInfoList = GoodsService::getAllByCondition(['id' => ['in', $goodsList]], 'inTurn DESC', '*', 'id');
|
|
|
$goodsInfoList = GoodsClass::groupGoodsBaseInfo($goodsInfoList);
|
|
|
|
|
|
//每个分类取的商品数
|