6
0
Fork 0
release
panliang 2022-06-27 11:21:46 +08:00
parent 4ccc747ea1
commit 6b47ea6dfe
1 changed files with 8 additions and 6 deletions

View File

@ -92,13 +92,15 @@ class ProductSkuController extends Controller
$key = implode('_', $jSpecs);
$mapSku = $mapSkus->get($key);
if ($mapSku) {
$spuSpecItems[] = [
'name' => $value['name'],
'selected' => $sku->is($mapSku),
'sku_id' => (int) $mapSku?->id,
'sku_stock' => (int) $mapSku?->saleable_stock,
];
}
$spuSpecItems[] = [
'name' => $value['name'],
'selected' => $sku->is($mapSku),
'sku_id' => (int) $mapSku?->id,
'sku_stock' => (int) $mapSku?->saleable_stock,
];
}
$spuSpecs[] = [