fix(route/caixin): Fix query (#13614)

This commit is contained in:
Andvari 2023-10-23 19:02:53 +08:00 committed by GitHub
parent 475372751f
commit b4ad15812b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ const { parseDate } = require('@/utils/parse-date');
const { parseBlogArticle } = require('./utils');
module.exports = async (ctx) => {
const { column, limit = 20 } = ctx.params;
const { column } = ctx.params;
const { limit = 20 } = ctx.query;
if (!column) {
const { data } = await got('https://blog.caixin.com/blog-api/post/index', {
searchParams: {