v0 plus附加功能:gamehook 移出主分支、unlockmusic 支持只解难度、转生限 3 首并按 15/15/50 秒时序、买票不再拉入场数据、authv1 示例脱敏

This commit is contained in:
Txiaochen committed 2026-10-31 03:27:08 +08:00
1 parent b26c71488f
commit 1d365cc948
9 files changed
+208 -79

No files matched your search

+14 -12
View File
@@ -37,11 +37,13 @@ authv1.py —— ALL.Net(alAbEx v4) 机台认证:Keychip -> clientId / regionI
result=-3 参数格式错(例如把 15 位完整 Keychip 当 client_id 发出去)
【用法】
python authv1.py A63E01E9580 # 查(打印结果)
python authv1.py A63E-01C30471007 # 带连字符的完整 Keychip 也行
python authv1.py A63E01E9580 --json # 机器可读
python authv1.py A63E01E9580 --write # 强制写回 config.py
python authv1.py A63E01E9580 --no-write # 强制不写
★ 下面例子里的 Keychip 全是**示例假值**,换成你自己机台的(真实值别外传)。
python authv1.py ABCD0123456 # 查(打印结果)
python authv1.py ABCD-01234567890 # 带连字符的完整 Keychip 也行
python authv1.py ABCD0123456 --json # 机器可读
python authv1.py ABCD0123456 --write # 强制写回 config.py
python authv1.py ABCD0123456 --no-write # 强制不写
python authv1.py --batch keychip.csv # 批量查(CSV 第一列是 Keychip)
★ 是否写回 config.py,默认看 config.py 里的 AUTHV1_WRITE_CONFIG 开关。
@@ -193,9 +195,9 @@ def parse_keychip(raw: str) -> str:
把用户给的 Keychip 归一化成 client_id(11 位大写短值)。
接受三种写法:
完整带连字符 "A63E-01C30471007"
完整连写 "A63E01C30471007"
短值 "A63E01C3047"
完整带连字符 "ABCD-01234567890"
完整连写 "ABCD01234567890"
短值 "ABCD0123456"
★ 为什么一定要截前 11 位:实测把完整 15 位当 client_id 发出去,
ALL.Net 回 result=-3(格式错)。
@@ -213,7 +215,7 @@ def make_keychip(client_id: str, place_id) -> str:
"""
按本工程约定拼回完整 Keychip:
前 4 位 + "-" + 第 5 位起 + placeId
例:A63E01C3047 + 1007 -> A63E-01C30471007
例:ABCD0123456 + 1007 -> ABCD-01234567890
"""
cid = str(client_id).upper()
return "%s-%s%d" % (cid[:4], cid[4:], int(place_id))
@@ -418,9 +420,9 @@ def build_parser():
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=(
"示例:\n"
" python authv1.py A63E01E9580\n"
" python authv1.py A63E-01C30471007 --json\n"
" python authv1.py A63E01E9580 --write\n"
" python authv1.py ABCD0123456\n"
" python authv1.py ABCD-01234567890 --json\n"
" python authv1.py ABCD0123456 --write\n"
" python authv1.py --batch source/keychip.csv --limit 10\n"
),
)