Authored by 毕凯

Merge branch 'hotfix/guang' into 'master'

'guang连接调整'



See merge request !1
... ... @@ -36,11 +36,11 @@ const baiduUrls = {
const siteUrls = {
pcProduct: {
site: 'https://item.yohobuy.com',
site: 'https://www.yohobuy.com',
url: []
},
pcGuang: {
site: 'https://guang.yohobuy.com',
site: 'https://www.yohobuy.com/',
url: []
},
mProduct: {
... ... @@ -48,7 +48,7 @@ const siteUrls = {
url: []
},
mGuang: {
site: 'https://guang.m.yohobuy.com',
site: 'https://m.yohobuy.com/',
url: []
}
... ... @@ -109,14 +109,13 @@ const getUrls = () => {
return api.all(apiArr).spread((productData, articleData) => {
_.forEach(_.get(productData, 'data', {}), value => {
siteUrls.pcProduct.url.push('https:' + helper.urlFormat(`/${value.erpProductId}.html`, null, 'item'));
siteUrls.pcProduct.url.push('https:' + helper.urlFormat(`/product/${value.erpProductId}.html`));
siteUrls.mProduct.url.push('https:' + helper.urlFormat(`/product/${value.erpProductId}.html`, null, 'm'));
});
_.forEach(_.get(articleData, 'data.artList', {}), value => {
siteUrls.pcGuang.url.push('https:' + helper.urlFormat(`/${value.articleId}.html`, null, 'guang'));
siteUrls.mGuang.url.push('https:' + helper.urlFormat(`/guang/info/${value.articleId}.html`
, null, 'guang.m'));
siteUrls.pcGuang.url.push('https:' + helper.urlFormat(`/guang/${value.articleId}.html`));
siteUrls.mGuang.url.push('https:' + helper.urlFormat(`/guang/${value.articleId}.html`, null, 'm'));
});
return siteUrls;
... ...