From 59756d27d45be947b65ecf5168b4e550d7d2d182 Mon Sep 17 00:00:00 2001
From: Kidd Yu <58631254@qq.com>
Date: Tue, 14 Jan 2020 12:01:14 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=96=B0=E8=B6=A3?=
=?UTF-8?q?=E9=9B=86=20(#3725)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/other.md | 14 ++++++++++++++
lib/router.js | 4 ++++
lib/routes/xinquji/internal.js | 15 +++++++++++++++
lib/routes/xinquji/today.js | 15 +++++++++++++++
4 files changed, 48 insertions(+)
create mode 100644 lib/routes/xinquji/internal.js
create mode 100644 lib/routes/xinquji/today.js
diff --git a/docs/other.md b/docs/other.md
index 0eb3aa987a..6832cdd210 100644
--- a/docs/other.md
+++ b/docs/other.md
@@ -388,6 +388,20 @@ type 为 all 时,category 参数不支持 cost 和 free
+## 新趣集
+
+> 官方 Feed 地址为: [https://xinquji.com/rss](https://xinquji.com/rss)
+
+### 今日最佳
+
+
+
+
+### 今日国内
+
+
+
+
## 新田惠海官方网站
### 最近的更新
diff --git a/lib/router.js b/lib/router.js
index d6fee038b9..c74ff79feb 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -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'));
diff --git a/lib/routes/xinquji/internal.js b/lib/routes/xinquji/internal.js
new file mode 100644
index 0000000000..159a1fa21f
--- /dev/null
+++ b/lib/routes/xinquji/internal.js
@@ -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',
+ })),
+ };
+};
diff --git a/lib/routes/xinquji/today.js b/lib/routes/xinquji/today.js
new file mode 100644
index 0000000000..35bb0ffd7b
--- /dev/null
+++ b/lib/routes/xinquji/today.js
@@ -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',
+ })),
+ };
+};