Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 更新杏坛等级 #2162

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 40 additions & 14 deletions resource/sites/xingtan.one/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,34 @@
"interval": "4",
"downloaded": "50GB",
"ratio": "1.05",
"privilege": "得到1个邀请名额;可以直接发布种子;可以查看NFO文档;可以查看用户列表;可以请求续种; 可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"强\"); 可以删除自己上传的字幕。"
"seedingPoints": "14888",
"privilege": "得到一个邀请名额;可以直接发布种子;可以查看NFO文档;可以查看用户列表;可以请求续种; 可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"强\"); 可以删除自己上传的字幕。"
},
{
"level": 2,
"name": "Elite User",
"interval": "8",
"downloaded": "120GB",
"ratio": "1.55",
"privilege": "Elite User及以上用户封存账号后不会被删除。"
"seedingPoints": "29888",
"privilege": ""
},
{
"level": 3,
"name": "Crazy User",
"interval": "15",
"downloaded": "300GB",
"ratio": "2.05",
"privilege": "得到2个邀请名额;可以在做种/下载/发布的时候选择匿名模式。"
"seedingPoints": "59888",
"privilege": "CrazyUser及以上用户封存账号后不会被删除;得到两个邀请名额;可以在做种/下载/发布的时候选择匿名模式。"
},
{
"level": 4,
"name": "Insane User",
"interval": "25",
"downloaded": "500GB",
"ratio": "2.55",
"seedingPoints": "118888",
"privilege": "可以查看普通日志。"
},
{
Expand All @@ -47,44 +51,56 @@
"interval": "40",
"downloaded": "750GB",
"ratio": "3.05",
"privilege": "得到3个邀请名额;可以查看其它用户的评论、帖子历史。Veteran User及以上用户会永远保留账号。"
"seedingPoints": "236888",
"privilege": "得到三个邀请名额;可以查看其它用户的评论、帖子历史。"
},
{
"level": 6,
"name": "Extreme User",
"interval": "60",
"downloaded": "1TB",
"ratio": "3.55",
"privilege": "可以更新过期的外部信息;可以查看Extreme User论坛。"
"seedingPoints": "468888",
"privilege": "Extreme User及以上等级用户会永远保留;可以更新过期的外部信息;可以查看Extreme User论坛。"
},
{
"level": 7,
"name": "Ultimate User",
"interval": "80",
"downloaded": "1.5TB",
"ratio": "4.05",
"privilege": "得到5个邀请名额。"
"seedingPoints": "988888",
"privilege": "得到四个邀请名额。"
},
{
"level": 8,
"name": "Nexus Master",
"interval": "100",
"downloaded": "3TB",
"ratio": "4.55",
"privilege": "得到10个邀请名额。"
"seedingPoints": "1888888",
"privilege": "得到五个邀请名额。"
}
],
"formerHosts": [
"xinglin.one"
],
"collaborator": ["koal","yum"],
"collaborator": [
"koal",
"yum"
],
"selectors": {
"userExtendInfo": {
"merge": true,
"fields": {
"bonus": {
"selector": ["td.rowhead:contains('杏仁值') + td"],
"filters": ["query.text().replace(/,/g,'')", "parseFloat(query)"]
"selector": [
"td.rowhead:contains('杏仁值') + td"
],
"filters": [
"query.text().replace(/,/g,'')",
"parseFloat(query)"
]
}
}
},
Expand All @@ -93,17 +109,27 @@
"page": "/mybonus.php",
"fields": {
"bonusPerHour": {
"selector": ["div:contains('你当前每小时能获取'):last", "div:contains('You are currently getting'):last", "div:contains('你當前每小時能獲取'):last"],
"filters": ["parseFloat(query.text().replace(/,/g,'').match(/[\\d.]+/)[0])"]
"selector": [
"div:contains('你当前每小时能获取'):last",
"div:contains('You are currently getting'):last",
"div:contains('你當前每小時能獲取'):last"
],
"filters": [
"parseFloat(query.text().replace(/,/g,'').match(/[\\d.]+/)[0])"
]
}
}
},
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": ["b:first"],
"filters": ["query.text()"]
"selector": [
"b:first"
],
"filters": [
"query.text()"
]
},
"seedingSize": {
"selector": "",
Expand Down