perf(douyu): 拆分支付轮询并扩展查询并发

This commit is contained in:
yml
2026-11-21 10:38:39 +08:00
parent 743fa69630
commit 3987464035
21 changed files with 1151 additions and 531 deletions
@@ -992,7 +992,9 @@ export default function DouyuTasksPage({ handbook }: { handbook: HandbookKind })
// 支付码批次尽量一次全出码,队列只负责展示和等待到账,不让人工等前一个付完才生成下一个。
const batchConcurrency = DOUYU_PAYMENT_TASK_TYPE_SET.has(taskType)
? Math.min(10, Math.max(concurrency, ids.length))
: concurrency;
: taskType === 'query_account_overview'
? Math.min(5, Math.max(concurrency, ids.length))
: Math.min(5, concurrency);
try {
const result = await douyuApi.createTasks({
account_ids: ids,