增加重试

This commit is contained in:
yml2213
2026-06-22 15:45:48 +08:00
parent 2443d23316
commit 9fba12aad0
8 changed files with 199 additions and 60 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ export const accountApi = {
};
export const loginApi = {
createBatch: (account_ids: number[], max_geetest_retries?: number) =>
api.post<any, any>('/login/batch', { account_ids, max_geetest_retries }),
createBatch: (account_ids: number[], max_geetest_retries?: number, concurrency?: number) =>
api.post<any, any>('/login/batch', { account_ids, max_geetest_retries, concurrency }),
listTasks: (batch_id?: string) =>
api.get<any, any[]>('/login/tasks', { params: batch_id ? { batch_id } : {} }),
stop: (batch_id: string) => api.post<any, any>(`/login/stop/${batch_id}`),