mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
feat: 添加顺丰丰桥平台公告 (#2854)
This commit is contained in:
@@ -499,6 +499,12 @@ GitHub 官方也提供了一些 RSS:
|
||||
|
||||
</Route>
|
||||
|
||||
## 顺丰
|
||||
|
||||
### 顺丰丰桥开放平台公告
|
||||
|
||||
<Route author="phantomk" example="/sf/sffq-announce" path="/sf/sffq-announce"/>
|
||||
|
||||
## 腾讯游戏开发者社区
|
||||
|
||||
::: warning 注意
|
||||
|
||||
@@ -1660,6 +1660,9 @@ router.get('/youzan/goods/:id', require('./routes/youzan/goods'));
|
||||
// 币世界快讯
|
||||
router.get('/bishijie/kuaixun', require('./routes/bishijie/kuaixun'));
|
||||
|
||||
// 顺丰丰桥
|
||||
router.get('/sf/sffq-announce', require('./routes/sf/sffq-announce'));
|
||||
|
||||
// 缺书网
|
||||
router.get('/queshu/sale', require('./routes/queshu/sale'));
|
||||
router.get('/queshu/book/:bookid', require('./routes/queshu/book'));
|
||||
|
||||
21
lib/routes/sf/sffq-announce.js
Normal file
21
lib/routes/sf/sffq-announce.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const data = (await got({
|
||||
method: 'post',
|
||||
url: 'https://qiao.sf-express.com/menu/getListNews.pub',
|
||||
json: true,
|
||||
data: {},
|
||||
})).data;
|
||||
|
||||
ctx.state.data = {
|
||||
title: '顺丰丰桥开放平台-公告',
|
||||
link: 'https://qiao.sf-express.com/pages/news/index.html',
|
||||
item: data.latesnewsList.map((item) => ({
|
||||
title: item.title,
|
||||
description: '',
|
||||
pubDate: '',
|
||||
link: `https://qiao.sf-express.com/pages/news/index.html?id=${item.id}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user