更新sku判断

This commit is contained in:
mkm 2023-11-10 11:53:00 +08:00
parent 87ed07465a
commit c14d83bdb3

View File

@ -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];