itorr / CSGO-Status-Search

CSGO 对局信息速览工具
csgo-status-search.vercel.app
17 stars 2 forks source link

建议引入完美平台作弊显示 #2

Open abc1763613206 opened 1 year ago

abc1763613206 commented 1 year ago

本着一个 issue 只做一件事的原则,这里把我想 fork 但没改成的想法简单说说(
最近打国服匹配,经常匹到一些完美封了但V社没封的牛马,所以查成分的时候便想加上一项完美平台封禁情况。

正常的完美客户端查询API要登录鉴权,但是完美在 https://pvp.wanmei.com/csgo/ban 放了一个封禁公示,可以直接用 SteamID 查平台封禁情况。

API 也极其简单,直接 GET https://pvp.wanmei.com/user-info/forbid-list?game_abbr_list=PVP,CSGO&uid_list={SteamID64} 即可。
例如,这是 #1 中提到的那位的返回值:

{"code":0,"msg":"","data":{"total":1,"page":1,"page_size":10,"list":[{"steam_id64":"7656*********2274","nickname":"\u6bcf*********\u7684","forbid_type":"1","forbid_seconds":"315360000","defaultNickname":"\u7528\u623772274","validNickname":1}]}}

其中对于 forbid_type,我去看了眼 js,参照如下:

1 = "外挂作弊",
2 = "消极比赛",
3 = "谩骂侮辱",
4 = "挂机",
5 = "骚扰",
6 = "传播违规信息",
7 = "数据异常",
8 = "破坏游戏秩序",
9 = "恶意伤害队友",
10 = "小号炸鱼",
11 = "黑号",
12 = "战绩异常",
100 = "硬件指纹封禁"
itorr commented 1 year ago

这个好耶,还有现成 API 可以用!感觉可以加上来,写个定时爬虫脚本存下 JSON 数据在每次查询时展示?

abc1763613206 commented 1 year ago

这个好耶,还有现成 API 可以用!感觉可以加上来,写个定时爬虫脚本存下 JSON 数据在每次查询时展示?

我不清楚这个页面展示的数据有多少量级,但是拿着ID去查一定没错(
但其实最要命的是,公示的ID是打了码的

abc1763613206 commented 1 year ago

又发现一个 https://esports.wanmei.com/match-api/forbid-info?uid_list=76561199225272274

{"status":"success","result":{"76561199225272274":[{"id":"642025","game_abbr":"CSGO","type":"0","steam_id64":"76561199225272274","nickname":"每当我看到Jk脱离她的","zq_id":"50332875","forbid_type":"1","forbid_sub_type":"0","forbid_seconds":"315360000","reason":"","enable":"1","unforbid_manual":"0","unforbid_uid":"0","unforbid_reason":"","unforbid_time":"","source":"","is_green":"0","create_by":"0","create_time":"1665976617","expire_time":"1981336617","update_time":"0","update_uid":"0","clear_ladder":"0"}]}}