fix: 产品分类颜色

This commit is contained in:
2025-06-27 17:30:01 +08:00
parent 7b069971a4
commit 61bf02b031

View File

@@ -231,7 +231,7 @@ class Product extends Common
$attr = $sku_attrs_map[$v['id']]?? []; $attr = $sku_attrs_map[$v['id']]?? [];
if (!empty($attr)) { if (!empty($attr)) {
foreach ($attr as $at) { foreach ($attr as $at) {
if ($at['attr_name'] == '颜色') { if (in_array($at['attr_name'], ['颜色', 'Color'])) {
$color_map[$v['product_id']][] = $at; $color_map[$v['product_id']][] = $at;
} }
} }