fix(route/iwara): 修复 apiRootUrl 引用错误 (#22176)
This commit is contained in:
parent
fbe1a46018
commit
f5dc400cb2
|
|
@ -4,7 +4,7 @@ import cache from '@/utils/cache';
|
|||
import { parseDate } from '@/utils/parse-date';
|
||||
import { getPlaywrightPage } from '@/utils/playwright';
|
||||
|
||||
import { apiqRootUrl, parseThumbnail, rootUrl, typeMap } from './utils';
|
||||
import { apiRootUrl, parseThumbnail, rootUrl, typeMap } from './utils';
|
||||
|
||||
const sortMap = {
|
||||
date: 'Latest',
|
||||
|
|
@ -53,7 +53,7 @@ async function handler(ctx) {
|
|||
const { type = 'video', sort = 'date', rating = 'ecchi' } = ctx.req.param();
|
||||
|
||||
const limit = ctx.req.query('limit') || 32;
|
||||
const url = `${apiqRootUrl}/${type === 'video' ? 'videos' : 'images'}?sort=${sort}&rating=${rating}&limit=${limit}`;
|
||||
const url = `${apiRootUrl}/${type === 'video' ? 'videos' : 'images'}?sort=${sort}&rating=${rating}&limit=${limit}`;
|
||||
|
||||
const items = await cache.tryGet(
|
||||
`iwara:ranking:${type}:${sort}:${rating}`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue