...
|
...
|
@@ -63,14 +63,13 @@ class SeoIndexModel extends global.yoho.BaseModel { |
|
|
console.error(`goods-xml => s_sort_id: ${item.small_sort_id}, s_sort_name: ${item.small_sort_name}, baidu cate is null`);// eslint-disable-line
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
_.each(item.goods_list, goods => {
|
|
|
|
|
|
_.each(item.goods_list.slice(0, 5), goods => {
|
|
|
images.push({
|
|
|
contentUrl: `https:${helpers.image(goods.images_url, 450, 600)}`,
|
|
|
height: 600,
|
|
|
width: 450,
|
|
|
contentUrl: `https:${helpers.image(goods.images_url, 900, 1200)}`,
|
|
|
height: 1200,
|
|
|
width: 900,
|
|
|
description: `${item.product_name}-${goods.color_name}`,
|
|
|
tag: '',
|
|
|
name: goods.color_name
|
|
|
});
|
|
|
});
|
...
|
...
|
|