Skip to content

Commit

Permalink
rss: fix mi crowdfunding price
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 29, 2018
1 parent 0871be1 commit ddc7ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/mi/crowdfunding.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = async (ctx) => {
const data = JSON.parse(response.data.match(/^Zepto1532846359142\((.*)\);$/)[1]).data || {};
result = {
title: data.goods.name,
description: `${data.goods.summary}<br>${data.goods.market_price / 100}元<br><img referrerpolicy="no-referrer" src="${item.img}">`,
description: `${data.goods.summary}<br>${data.goods.price_min / 100}元<br><img referrerpolicy="no-referrer" src="${item.img}">`,
pubDate: new Date(data.crowdfunding.start * 1000).toUTCString(),
link: `https://youpin.mi.com/detail?gid=${item.gid}`,
};
Expand Down

0 comments on commit ddc7ff1

Please sign in to comment.