fix: 产品分类颜色
This commit is contained in:
@@ -231,7 +231,7 @@ class Product extends Common
|
||||
$attr = $sku_attrs_map[$v['id']]?? [];
|
||||
if (!empty($attr)) {
|
||||
foreach ($attr as $at) {
|
||||
if ($at['attr_name'] == '颜色') {
|
||||
if (in_array($at['attr_name'], ['颜色', 'Color'])) {
|
||||
$color_map[$v['product_id']][] = $at;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user