parent
7ac017dce4
commit
965efab145
|
|
@ -476,15 +476,15 @@ GitHub 官方也提供了一些 RSS:
|
|||
|
||||
### 专栏
|
||||
|
||||
<Route author="Maecenas" example="/juejin/posts/56852b2460b2a099cdc1d133" path="/juejin/posts/:id" :paramsDesc="['用户 id, 可在用户页 URL 中找到']" radar="1" rssbud="1"/>
|
||||
<Route author="Maecenas" example="/juejin/posts/3051900006845944" path="/juejin/posts/:id" :paramsDesc="['用户 id, 可在用户页 URL 中找到']" radar="1" rssbud="1"/>
|
||||
|
||||
### 收藏集
|
||||
|
||||
<Route author="isQ" example="/juejin/collections/5791879979bc440066171bdb" path="/juejin/collections/:userId" :paramsDesc="['用户唯一标志符, 在浏览器地址栏URL中能够找到']"/>
|
||||
<Route author="isQ" example="/juejin/collections/1697301682482439" path="/juejin/collections/:userId" :paramsDesc="['用户唯一标志符, 在浏览器地址栏URL中能够找到']"/>
|
||||
|
||||
### 单个收藏夹
|
||||
|
||||
<Route author="isQ" example="/juejin/collection/5cbf079df265da03462270f9" path="/juejin/collection/:collectionId" :paramsDesc="['收藏夹唯一标志符, 在浏览器地址栏URL中能够找到']"/>
|
||||
<Route author="isQ" example="/juejin/collection/6845243180586123271" path="/juejin/collection/:collectionId" :paramsDesc="['收藏夹唯一标志符, 在浏览器地址栏URL中能够找到']"/>
|
||||
|
||||
### 分享
|
||||
|
||||
|
|
|
|||
|
|
@ -21,5 +21,6 @@ module.exports = async (ctx) => {
|
|||
link: `https://juejin.im/collection/${collectionId}`,
|
||||
description: '掘金,用户单个收藏夹',
|
||||
item: result,
|
||||
allowEmpty: true,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports = async (ctx) => {
|
|||
url: `https://apinew.juejin.im/interact_api/v1/collectionSet/get?tag_id=${item}&cursor=0`,
|
||||
});
|
||||
|
||||
return (collectPage.data.data && collectPage.data.data.article_list.slice(0, 10)) || [];
|
||||
return (Array.isArray(collectPage.data.data.article_list) && collectPage.data.data.article_list.slice(0, 10)) || [];
|
||||
}
|
||||
|
||||
const temp = await Promise.all(collectionId.map(getPostId));
|
||||
|
|
@ -34,5 +34,6 @@ module.exports = async (ctx) => {
|
|||
link: `https://juejin.im/user/${userId}/collections`,
|
||||
description: '掘金,指定用户整个收藏集',
|
||||
item: result,
|
||||
allowEmpty: true,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue