...
|
...
|
@@ -33,10 +33,9 @@ const index = (req, res, next) => { |
|
|
});
|
|
|
|
|
|
_.forEach(result, item => {
|
|
|
item.url = item.url.indexOf('http') >= 0 ? item.url : 'http://' + item.url;
|
|
|
feed.addItem({
|
|
|
title: item.title,
|
|
|
link: `${item.url}&ref=rss`,
|
|
|
link: `https://m.yohobuy.com/guang/${item.id}.html?ref=rss`,
|
|
|
description: item.intro,
|
|
|
author: [{
|
|
|
name: (item.author && item.author.name) || ' '
|
...
|
...
|
@@ -60,7 +59,7 @@ const rss = (req, res, next, gmt) => { |
|
|
return next();
|
|
|
}
|
|
|
_.forEach(result, item => {
|
|
|
item.url = item.url.indexOf('http') >= 0 ? item.url : 'http://' + item.url;
|
|
|
item.url = `https://m.yohobuy.com/guang/${item.id}.html?ref=rss`;
|
|
|
let time = new Date(item.publishTimeLong &&
|
|
|
parseFloat(item.publishTimeLong) || moment(item.publishTime, 'MM月DD日 HH:mm'));
|
|
|
let format = gmt ? 'ddd, MM MMM YYYY hh:mm:ss +0800' : 'YYYY-MM-DD hh:mm:ss +0800';
|
...
|
...
|
|