更新sku判断
This commit is contained in:
parent
87ed07465a
commit
c14d83bdb3
@ -1242,7 +1242,7 @@ class ProductRepository extends BaseRepository
|
|||||||
$append[] = 'topReply';
|
$append[] = 'topReply';
|
||||||
}
|
}
|
||||||
unset($res['attr'], $res['attrValue'], $res['oldAttrValue'], $res['seckillActive']);
|
unset($res['attr'], $res['attrValue'], $res['oldAttrValue'], $res['seckillActive']);
|
||||||
if (count($attr) > 0) {
|
if (count($attr) > 1) {
|
||||||
$firstSku = [];
|
$firstSku = [];
|
||||||
foreach ($attr as $item) {
|
foreach ($attr as $item) {
|
||||||
$firstSku[] = $item['attr_values'][0];
|
$firstSku[] = $item['attr_values'][0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user