fix: 国家地理-每日一图 接口更改 (#3504)

This commit is contained in:
hoilc
2019-11-29 14:14:05 +08:00
committed by DIYgod
parent b0f07e7a87
commit c0c27a9ed3
+4 -4
View File
@@ -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;
});