fix(route/iwara): 修复 apiRootUrl 引用错误 (#22176)

This commit is contained in:
CaoMeiYouRen233 2026-06-04 05:30:53 +08:00 committed by GitHub
parent fbe1a46018
commit f5dc400cb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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}`,