提高所有弹幕接口的超时时间

This commit is contained in:
mtvpls
2025-12-25 00:12:03 +08:00
parent 012a3beb5e
commit 2e545466cb
3 changed files with 3 additions and 3 deletions

View File

@@ -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, {

View File

@@ -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, {

View File

@@ -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, {