(puuid: string, begIndex: number, endIndex: number)
| 3 | |
| 4 | // 辅助函数:处理单次请求 |
| 5 | const fetchMatchHistory = async (puuid: string, begIndex: number, endIndex: number): Promise<Games[]> => { |
| 6 | const uri = `/lol-match-history/v1/products/lol/${puuid}/matches?begIndex=${begIndex}&endIndex=${endIndex}`; |
| 7 | const matchList = await invoke<LcuMatchList| null>("get_match_list", { uri }); |
| 8 | if (matchList === null) return []; |
| 9 | return matchList.games.games || []; |
| 10 | } |
| 11 | |
| 12 | const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); |
| 13 |
no outgoing calls
no test coverage detected