feat: user control fluid search

This commit is contained in:
shinya
2025-08-17 17:32:42 +08:00
parent 07c1da2a6b
commit 4ffd59c5d1
20 changed files with 312 additions and 246 deletions
+2 -2
View File
@@ -66,10 +66,10 @@ export async function GET(request: NextRequest) {
// 记录已完成的源数量
let completedSources = 0;
let allResults: any[] = [];
const allResults: any[] = [];
// 为每个源创建搜索 Promise
const searchPromises = apiSites.map(async (site, index) => {
const searchPromises = apiSites.map(async (site) => {
try {
// 添加超时控制
const searchPromise = Promise.race([