fix: 凤凰网-大风号api更新 (#4893)
This commit is contained in:
@@ -279,3 +279,15 @@ count 的取值范围为 1-12,为防止请求次数过多,推荐设置为 5
|
||||
### 主页
|
||||
|
||||
<Route author="kt286" example="/zreading" path="/zreading" />
|
||||
|
||||
## 生物谷
|
||||
|
||||
### 所有栏目
|
||||
|
||||
<Route author="xfangbao" example="/shengwugu/biology" path="/shengwugu/:uid/" :paramsDesc="['分栏代码, 可在 URL 找到']" />
|
||||
|
||||
具体栏目编号,去网站上看标签
|
||||
|
||||
| 网址 | 对应路由 |
|
||||
| -------- | -------- |
|
||||
| http://news.bioon.com/biology | /shengwugu/biology |
|
||||
|
||||
@@ -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: `<img src="${item.thumbnail}">${item.title}`,
|
||||
|
||||
Reference in New Issue
Block a user