Authored by 周少峰

detail error

@@ -40,7 +40,7 @@ const itemXmlData = () => {// eslint-disable-line @@ -40,7 +40,7 @@ const itemXmlData = () => {// eslint-disable-line
40 return api.get('', {method: 'web.product.bdPromotion'}, {cache: 86400}).then(res => { 40 return api.get('', {method: 'web.product.bdPromotion'}, {cache: 86400}).then(res => {
41 _.forEach(_.get(res, 'data', ''), val => { 41 _.forEach(_.get(res, 'data', ''), val => {
42 urls.push({ 42 urls.push({
43 - url: 'https:' + helpers.urlFormat(`/product/${val.id}.html`, '', null), 43 + url: 'https:' + helpers.urlFormat(`/product/${val.erpProductId}.html`, '', null),
44 changefreq: 'daily', 44 changefreq: 'daily',
45 priority: 0.3 45 priority: 0.3
46 }); 46 });