diff --git a/src/app/api/danmaku/episodes/route.ts b/src/app/api/danmaku/episodes/route.ts index 112ee85..b28e064 100644 --- a/src/app/api/danmaku/episodes/route.ts +++ b/src/app/api/danmaku/episodes/route.ts @@ -40,7 +40,7 @@ export async function GET(request: NextRequest) { // 添加超时控制和重试机制 const controller = new AbortController(); - const timeoutId = setTimeout(() => controller.abort(), 10000); // 10秒超时 + const timeoutId = setTimeout(() => controller.abort(), 30000); // 10秒超时 try { const response = await fetch(apiUrl, { diff --git a/src/app/api/danmaku/match/route.ts b/src/app/api/danmaku/match/route.ts index 194a66c..972bf00 100644 --- a/src/app/api/danmaku/match/route.ts +++ b/src/app/api/danmaku/match/route.ts @@ -37,7 +37,7 @@ export async function POST(request: NextRequest) { // 添加超时控制 const controller = new AbortController(); - const timeoutId = setTimeout(() => controller.abort(), 10000); // 10秒超时 + const timeoutId = setTimeout(() => controller.abort(), 30000); // 10秒超时 try { const response = await fetch(apiUrl, { diff --git a/src/app/api/danmaku/search/route.ts b/src/app/api/danmaku/search/route.ts index 670381a..ecda7ef 100644 --- a/src/app/api/danmaku/search/route.ts +++ b/src/app/api/danmaku/search/route.ts @@ -36,7 +36,7 @@ export async function GET(request: NextRequest) { // 添加超时控制 const controller = new AbortController(); - const timeoutId = setTimeout(() => controller.abort(), 10000); // 10秒超时 + const timeoutId = setTimeout(() => controller.abort(), 30000); // 10秒超时 try { const response = await fetch(apiUrl, {