mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
修复代理,支持某些预设面板
This commit is contained in:
parent
b890097a59
commit
13a8bbc35c
@ -272,7 +272,8 @@ export default class ProfileRank {
|
||||
if (!uid) {
|
||||
return false
|
||||
}
|
||||
if (uid * 1 < 100000005) {
|
||||
// 预设面板不参与排名
|
||||
if (uid * 1 < 100000006) {
|
||||
return false
|
||||
}
|
||||
try {
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user