fix: req param typo
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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.');
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user