From 25ddb38182dad272ece01d8009d055134eb2d7cb Mon Sep 17 00:00:00 2001 From: Admilk <13205155+adrae@user.noreply.gitee.com> Date: Sat, 4 May 2024 03:15:27 +0000 Subject: [PATCH] =?UTF-8?q?EnkaApi.js=E7=9A=84=E4=BB=A3=E7=90=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=86=99=E9=94=99=E4=BA=86,=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E6=98=AFHttpsProxyAgent.default=20=E6=9D=A5=E8=87=AAQQ?= =?UTF-8?q?=E7=94=A8=E6=88=B7=201035380945?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Admilk <13205155+adrae@user.noreply.gitee.com> --- models/serv/api/EnkaApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/serv/api/EnkaApi.js b/models/serv/api/EnkaApi.js index b46ad848..52f37b4e 100644 --- a/models/serv/api/EnkaApi.js +++ b/models/serv/api/EnkaApi.js @@ -18,7 +18,7 @@ export default { HttpsProxyAgent = await import('https-proxy-agent').catch((err) => { logger.error(err) }) - HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.HttpsProxyAgent : undefined + HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.default : undefined } if (HttpsProxyAgent) { params.agent = new HttpsProxyAgent(proxy)