feat: sku
This commit is contained in:
@@ -137,9 +137,7 @@ class GoodCache
|
||||
$spuIds = array_column($list, 'id');
|
||||
|
||||
$skuList = $this->skuModel->getListBySpuIds($spuIds);
|
||||
// ->whereIn('spu_id',$spuIds)
|
||||
// ->where('is_del',GoodCode::SKU_IS_NO_DEL)
|
||||
// ->get();
|
||||
|
||||
if (empty($skuList)) return $list;
|
||||
|
||||
$skuList = $skuList->toArray();
|
||||
@@ -160,8 +158,6 @@ class GoodCache
|
||||
];
|
||||
}
|
||||
|
||||
// $sku['image_list'] = $imageOneArr;
|
||||
|
||||
if (empty($skuListArr[$sku['spu_id']])) {
|
||||
$skuListArr[$sku['spu_id']] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user