Merge pull request #642 from kaguramaisakuya/master

修复代理,支持某些预设面板
This commit is contained in:
Ca(HCO₃)₂ 2023-09-16 23:44:55 +08:00 committed by GitHub
commit c85a22674b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -272,7 +272,8 @@ export default class ProfileRank {
if (!uid) {
return false
}
if (uid * 1 < 100000005) {
// 预设面板不参与排名
if (uid * 1 < 100000006) {
return false
}
try {

View File

@ -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)

View File

@ -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)