Authored by 郝肖肖

'loc-url'

... ... @@ -3,7 +3,7 @@ const fs = require('fs');
const xsdFile = fs.readFileSync('./apps/controllers/seo/xm.xsd').toString();
for (let i = 1; i <= 32; i++) {
for (let i = 1; i <= 78; i++) {
const xml = `./public/dist/goods-xml/goods-${i}.xml`;
const xmlFile = fs.readFileSync(xml).toString();
const schema = xsd.parse(xsdFile);
... ...
... ... @@ -82,7 +82,7 @@ class SeoIndexModel extends global.yoho.BaseModel {
});
products.push({
loc: `${GOODS_URL}/goods-${params.start}.xml`,
loc: `https://www.yohobuy.com/product/${item.product_skn}.html`,
lastmod: moment.unix(item.edit_time).format('YYYY-MM-DD'),
changefreq: 'daily',
priority: 1.0,
... ...