diff --git a/docs/reading.md b/docs/reading.md index b9212ad73..be85d4fce 100644 --- a/docs/reading.md +++ b/docs/reading.md @@ -279,3 +279,15 @@ count 的取值范围为 1-12,为防止请求次数过多,推荐设置为 5 ### 主页 + +## 生物谷 + +### 所有栏目 + + + +具体栏目编号,去网站上看标签 + +| 网址 | 对应路由 | +| -------- | -------- | +| http://news.bioon.com/biology | /shengwugu/biology | diff --git a/lib/routes/ifeng/feng.js b/lib/routes/ifeng/feng.js index d4deeddac..d2e54cd7a 100644 --- a/lib/routes/ifeng/feng.js +++ b/lib/routes/ifeng/feng.js @@ -10,14 +10,14 @@ module.exports = async (ctx) => { method: 'get', url: `https://shankapi.ifeng.com/winter/ishare/getAccountInfo/${id}`, headers: { - Referer: `https://ishare.ifeng.com/mediaShare/home/${id}/do`, + Referer: `https://feng.ifeng.com/author/${id}`, }, }); const contentResponse = await got({ method: 'get', - url: `https://shankapi.ifeng.com/winter/ishare/getShareListData/${id}/${type}/1`, + url: `https://shankapi.ifeng.com/winter/feng/author/getFengAuthorListData/${id}/${type}/1`, headers: { - Referer: `https://ishare.ifeng.com/mediaShare/home/${id}/do`, + Referer: `https://feng.ifeng.com/author/${id}`, }, }); @@ -27,7 +27,7 @@ module.exports = async (ctx) => { const mediaName = userData.weMediaName; const items = await Promise.all( (contentData || []).map(async (item) => { - const link = `https://feng.ifeng.com/c/${item.id}`; + const link = `https:${item.url}`; const simple = { title: item.title, description: `${item.title}`,