feat : spu

This commit is contained in:
2025-03-25 17:38:26 +08:00
parent 3b7817bf02
commit 2017053b75
2 changed files with 4 additions and 13 deletions

View File

@@ -53,19 +53,6 @@ class OptionalListService extends BaseService
$this->goodCache->kitchenId = (int)$siteInfo['kitchen_id'];
$data = $this->goodCache->getOptionalGoodList();
$this->buildData(&$data);
return $this->return->success('success', ['list' => $data]);
}
/**
* @param $data
* @return void
*/
private function buildData(&$data): void
{
foreach ($data as &$spu) {
$spu['price'] = min(array_column($spu['sku_list'], 'price'));
}
}
}