修复代理,支持某些预设面板

This commit is contained in:
kaguramaisakuya 2023-09-16 23:43:07 +08:00
parent b890097a59
commit 13a8bbc35c
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)