Skip to content

Commit

Permalink
fix: 国家地理-每日一图 接口更改 (#3504)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoilc authored and DIYgod committed Nov 29, 2019
1 parent b0f07e7 commit c0c27a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/routes/natgeo/dailyphoto.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = async (ctx) => {

const out = items.slice(0, 10).map((item) => {
const info = {
title: item.altText,
author: item.credit,
link: item['full-path-url'],
description: `<img src="${item.sizes[1024]}">` + item.caption,
title: item.image.title,
author: item.image.credit.replace('Photograph by ', ''),
link: item.pageUrl,
description: `<img src="${item.image.uri}">` + item.image.caption,
};
return info;
});
Expand Down

0 comments on commit c0c27a9

Please sign in to comment.