diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index b9b54428..a9134789 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -1242,7 +1242,7 @@ class ProductRepository extends BaseRepository $append[] = 'topReply'; } unset($res['attr'], $res['attrValue'], $res['oldAttrValue'], $res['seckillActive']); - if (count($attr) > 0) { + if (count($attr) > 1) { $firstSku = []; foreach ($attr as $item) { $firstSku[] = $item['attr_values'][0];