perf(douyu): 拆分支付轮询并扩展查询并发
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user