From 736669d8a20a69f0ad07c9a07f8e404528aee6cd Mon Sep 17 00:00:00 2001 From: GoneTone Date: Wed, 24 Nov 2021 15:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=20"=E5=8D=A1=E6=B1=A0?= =?UTF-8?q?=E6=AD=B7=E5=8F=B2=E7=B4=80=E9=8C=84=20API=20=E8=B3=87=E6=96=99?= =?UTF-8?q?=E5=8F=96=E5=BE=97=E5=A4=B1=E6=95=97"=20=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=EF=BC=8C=E5=9B=A0=20miHoYo=20=E5=B0=8D=20API=20=E9=80=B2?= =?UTF-8?q?=E8=A1=8C=E9=99=90=E9=80=9F=EF=BC=8CHTTP=20=E8=AB=8B=E6=B1=82?= =?UTF-8?q?=E7=99=BC=E9=80=81=E5=A4=AA=E5=BF=AB=E6=9C=83=E5=9B=9E=E5=82=B3?= =?UTF-8?q?=20-110=20=E5=A4=B1=E6=95=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/MiHoYoApi.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/MiHoYoApi.js b/src/modules/MiHoYoApi.js index 57874b6..a250f51 100644 --- a/src/modules/MiHoYoApi.js +++ b/src/modules/MiHoYoApi.js @@ -226,6 +226,8 @@ class MiHoYoApi { logArray = logArray.concat(res) page++ + + await new Promise((resolve) => setTimeout(resolve, 300)) // 應付 miHoYo API 限速,每 300ms 發送一次 HTTP 請求 } else { break }