diff --git a/lib/routes/ciweimao/chapter.ts b/lib/routes/ciweimao/chapter.ts index 0cba5caba..51e09ee8b 100644 --- a/lib/routes/ciweimao/chapter.ts +++ b/lib/routes/ciweimao/chapter.ts @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; export default async (ctx) => { - const id = ctx.req.param.get('id'); + const id = ctx.req.param('id'); const limit = Number.parseInt(ctx.req.query('limit')) || 10; const baseUrl = 'https://wap.ciweimao.com'; diff --git a/lib/routes/hbooker/chapter.ts b/lib/routes/hbooker/chapter.ts index 7e0b2070f..473a0a19b 100644 --- a/lib/routes/hbooker/chapter.ts +++ b/lib/routes/hbooker/chapter.ts @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; export default async (ctx) => { - const id = ctx.req.param.get('id'); + const id = ctx.req.param('id'); const limit = Number.parseInt(ctx.req.query('limit')) || 10; const baseUrl = 'https://www.hbooker.com'; diff --git a/lib/routes/rsshub/media.ts b/lib/routes/rsshub/media.ts index 03f47b334..e05dcb269 100644 --- a/lib/routes/rsshub/media.ts +++ b/lib/routes/rsshub/media.ts @@ -9,7 +9,7 @@ export default async (ctx) => { throw new Error('Internal media proxy is disabled.'); } - const key = ctx.req.param.get('key'); + const key = ctx.req.param('key'); if (key !== config.feature.mediaProxyKey) { throw new Error('Invalid media proxy key.'); } diff --git a/lib/routes/sfacg/novel-chapter.ts b/lib/routes/sfacg/novel-chapter.ts index dc78d6f92..b92dc6f07 100644 --- a/lib/routes/sfacg/novel-chapter.ts +++ b/lib/routes/sfacg/novel-chapter.ts @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; export default async (ctx) => { - const id = ctx.req.param.get('id'); + const id = ctx.req.param('id'); const limit = Number.parseInt(ctx.req.query('limit')) || 20; const baseUrl = 'https://book.sfacg.com'; diff --git a/lib/routes/wmpvp/index.ts b/lib/routes/wmpvp/index.ts index d3d863deb..136794610 100644 --- a/lib/routes/wmpvp/index.ts +++ b/lib/routes/wmpvp/index.ts @@ -3,7 +3,7 @@ import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; export default async (ctx) => { - const type = ctx.req.param.get('type'); + const type = ctx.req.param('type'); const response = await got({ method: 'get',