fix: req param typo

This commit is contained in:
DIYgod
2024-03-04 22:27:09 +08:00
parent 526a1948ec
commit c93541e57c
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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.');
}
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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',