Authored by 周少峰

add static url

... ... @@ -64,6 +64,8 @@ module.exports = class extends global.yoho.BaseModel {
* @param urls array
*/
sendUrlsToBaidu(site, urls, token) {
logger.info(`${site}${urls.length}`);
let options = {
url: `http://data.zz.baidu.com/urls?site=${site}&token=${token || config.baiduToken}`,
headers: {
... ...
/**
* pc/wap站静态url 用于站点地图
*
*/
module.exports = {
pc:{
// 频道
channel: {
loc: ['https:www.yohobuy.com/', 'https://www.yohobuy.com/girls/', 'https://www.yohobuy.com/kids/', 'https://www.yohobuy.com/lifestyle/'],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.8'
},
// 新品到着
new: {
loc: ['https://list.yohobuy.com/boys-new/', 'https://list.yohobuy.com/girls-new/', 'https://list.yohobuy.com/kids-new/', 'https://list.yohobuy.com/lifestyle-new/'],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.5'
},
// 品牌一览
brands: {
loc: ['https://list.yohobuy.com/boys-brands/', 'https://list.yohobuy.com/girls-brands/', 'https://list.yohobuy.com/kids-brands/', 'https://list.yohobuy.com/lifestyle-brands/'],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.3'
},
// 领券中心
coupon: {
loc: ['https://www.yohobuy.com/coupon/'],
lastmod: '2017-12-14',
changefreq: 'weekly',
priority: '0.3'
},
// sale
salse: {
loc: ['https://www.yohobuy.com/product/boys-sale/', 'https://www.yohobuy.com/product/girls-sale/', 'https://www.yohobuy.com/product/kids-sale/', 'https://www.yohobuy.com/product/lifestyle-sale/'],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.3'
},
// 分类列表
category: {
loc: [],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.3'
},
// 分类列表
search: {
loc: ['https://search.yohobuy.com/'],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.3'
},
// 逛 编辑列表/标签列表/逛详情动态添加
guang: {
loc: ['https://guang.yohobuy.com/boys/', 'https://guang.yohobuy.com/girls/', 'https://guang.yohobuy.com/kids/', 'https://guang.yohobuy.com/lifestyle/'],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.3'
},
// 商品详情动态添加
item: {
loc: [],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.3'
}
},
wap: {
// 频道
channel: {
loc: ['https:m.yohobuy.com/', 'https://m.yohobuy.com/girls/', 'https://m.yohobuy.com/kids/', 'https://m.yohobuy.com/lifestyle/'],
lastmod: '2017-12-14',
changefreq: 'daily',
priority: '0.8'
},
}
}
\ No newline at end of file
... ...