diff --git a/lib/routes/aisixiang/utils.js b/lib/routes/aisixiang/utils.js index 05bed0a03..3c1bb1e4f 100644 --- a/lib/routes/aisixiang/utils.js +++ b/lib/routes/aisixiang/utils.js @@ -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, }; };