From 13a8bbc35c2775e17ff7e7967229bb44de7c23c4 Mon Sep 17 00:00:00 2001 From: kaguramaisakuya <1657974606@qq.com> Date: Sat, 16 Sep 2023 23:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9F=90=E4=BA=9B=E9=A2=84=E8=AE=BE=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/ProfileRank.js | 3 ++- models/ProfileReq.js | 3 ++- models/player/EnkaApi.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/models/ProfileRank.js b/models/ProfileRank.js index 01ba648d..11e85dcd 100644 --- a/models/ProfileRank.js +++ b/models/ProfileRank.js @@ -272,7 +272,8 @@ export default class ProfileRank { if (!uid) { return false } - if (uid * 1 < 100000005) { + // 预设面板不参与排名 + if (uid * 1 < 100000006) { return false } try { diff --git a/models/ProfileReq.js b/models/ProfileReq.js index 6e84c13f..b1877e6b 100644 --- a/models/ProfileReq.js +++ b/models/ProfileReq.js @@ -13,7 +13,8 @@ export default class ProfileReq extends Base { if (!e || !e.uid) { return false } - if (e.uid * 1 < 100000005) { + // 预设面板不更新数据 + if (e.uid * 1 < 100000006) { return false } return new ProfileReq(e, game) diff --git a/models/player/EnkaApi.js b/models/player/EnkaApi.js index 52f37b4e..b46ad848 100644 --- a/models/player/EnkaApi.js +++ b/models/player/EnkaApi.js @@ -18,7 +18,7 @@ export default { HttpsProxyAgent = await import('https-proxy-agent').catch((err) => { logger.error(err) }) - HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.default : undefined + HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.HttpsProxyAgent : undefined } if (HttpsProxyAgent) { params.agent = new HttpsProxyAgent(proxy)