Skip to content

feat: add 方格子 个人文章列表#2142

Merged
DIYgod merged 5 commits intoDIYgod:masterfrom
LogicJake:vocus
May 16, 2019
Merged

feat: add 方格子 个人文章列表#2142
DIYgod merged 5 commits intoDIYgod:masterfrom
LogicJake:vocus

Conversation

@LogicJake
Copy link
Copy Markdown
Contributor

closes #2139

module.exports = async (ctx) => {
const id = ctx.params.id;

const { _id, fullname, intro } = (await axios.get(`https://api.sosreader.com/api/users/${id}`)).data;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最好带上 refer

articles.map(async (item) => ({
title: item.title,
author: item.user.fullname,
description: (await axios.get(`https://api.sosreader.com/api/article/${item._id}`)).data.article.content,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要使用缓存

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@DIYgod DIYgod merged commit 8f79358 into DIYgod:master May 16, 2019
@DIYgod
Copy link
Copy Markdown
Owner

DIYgod commented May 16, 2019

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

方格子 个人文章列表

2 participants