fix: add missing link (#1586)

This commit is contained in:
Henry Wang
2019-02-20 03:03:24 +00:00
committed by DIYgod
parent 072f14354a
commit 87f60198b2

View File

@@ -14,8 +14,8 @@ const ProcessFeed = async (link) => {
});
const description = JSON.parse(iconv.decode(response.data, 'gbk')).content;
response = await axios.get(`http://www.aisixiang.com${link}`, {
link = `http://www.aisixiang.com${link}`;
response = await axios.get(link, {
responseType: 'arraybuffer',
});
@@ -38,6 +38,7 @@ const ProcessFeed = async (link) => {
author: title.split('/')[0] || '',
description,
pubDate,
link,
};
};