feat: 新增新趣集 (#3725)
This commit is contained in:
@@ -388,6 +388,20 @@ type 为 all 时,category 参数不支持 cost 和 free
|
||||
|
||||
<Route author="kt286" example="/tprtc/news" path="/tprtc/news"/>
|
||||
|
||||
## 新趣集
|
||||
|
||||
> 官方 Feed 地址为: [https://xinquji.com/rss](https://xinquji.com/rss)
|
||||
|
||||
### 今日最佳
|
||||
|
||||
<Route author="kiddyuchina" example="/xinquji/today" path="/xinquji/today">
|
||||
</Route>
|
||||
|
||||
### 今日国内
|
||||
|
||||
<Route author="kiddyuchina" example="/xinquji/today/internal" path="/xinquji/today/internal">
|
||||
</Route>
|
||||
|
||||
## 新田惠海官方网站
|
||||
|
||||
### 最近的更新
|
||||
|
||||
@@ -2098,6 +2098,10 @@ router.get('/mlog-club/projects', require('./routes/mlog-club/projects'));
|
||||
// Chrome 网上应用店
|
||||
router.get('/chrome/webstore/extensions/:id', require('./routes/chrome/extensions'));
|
||||
|
||||
// 新趣集
|
||||
router.get('/xinquji/today', require('./routes/xinquji/today'));
|
||||
router.get('/xinquji/today/internal', require('./routes/xinquji/internal'));
|
||||
|
||||
// 英中协会
|
||||
router.get('/gbcc/trust', require('./routes/gbcc/trust'));
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got.get('https://xinquji.com/frontend/post/groups?cursor=0&only_internal=1');
|
||||
|
||||
ctx.state.data = {
|
||||
title: '新趣集今日国内最佳',
|
||||
link: 'https://xinquji.com',
|
||||
item: response.data.data.map((item) => ({
|
||||
title: item.name,
|
||||
description: `${item.name} ${item.description}`,
|
||||
link: 'https://xinquji.com/posts/' + item.id + '?utm_source=rsshub',
|
||||
})),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got.get('https://xinquji.com/frontend/post/groups?cursor=0');
|
||||
|
||||
ctx.state.data = {
|
||||
title: '新趣集今日最佳',
|
||||
link: 'https://xinquji.com',
|
||||
item: response.data.data.map((item) => ({
|
||||
title: item.name,
|
||||
description: `${item.name} ${item.description}`,
|
||||
link: 'https://xinquji.com/posts/' + item.id + '?utm_source=rsshub',
|
||||
})),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user