v0 plus附加功能:gamehook 移出主分支、unlockmusic 支持只解难度、转生限 3 首并按 15/15/50 秒时序、买票不再拉入场数据、authv1 示例脱敏
This commit is contained in:
1 parent
b26c71488f
commit
1d365cc948
9 files changed
+208
-79
No files matched your search
@@ -2023,6 +2023,7 @@ def build_user_all(
|
||||
unlock_music_ids: Optional[Sequence[int]] = None,
|
||||
unlock_master: bool = True,
|
||||
unlock_remaster: bool = True,
|
||||
unlock_base: bool = True,
|
||||
) -> Dict[str, Any]:
|
||||
"""
|
||||
组装 upsertUserAll 的 36 个节点。
|
||||
@@ -2050,6 +2051,9 @@ def build_user_all(
|
||||
写进 userItemList:kind5=歌曲本体、kind6=Master、kind7=Re:Master。
|
||||
unlock_master: 解锁时是否一并解禁 Master(仅 DX 谱 musicId >= 10000 生效)
|
||||
unlock_remaster: 解锁时是否一并解禁 Re:Master(同上)
|
||||
unlock_base: False = **不解锁歌曲本体**(不写 kind5),只解禁难度。
|
||||
注意:歌曲本体没解锁时,游戏里可能连谱面都进不去,
|
||||
所以这个开关是「只补难度」的场景用的。
|
||||
|
||||
返回:
|
||||
36 节点的 dict
|
||||
@@ -2167,6 +2171,7 @@ def build_user_all(
|
||||
existing=user_all.get("userItemList") or [],
|
||||
master=unlock_master,
|
||||
remaster=unlock_remaster,
|
||||
unlock_base=unlock_base,
|
||||
)
|
||||
for note in unlock_notes:
|
||||
log_info(note)
|
||||
@@ -2627,6 +2632,7 @@ def UpsertUserAll(
|
||||
unlock_music_ids: Optional[Sequence[int]] = None,
|
||||
unlock_master: bool = True,
|
||||
unlock_remaster: bool = True,
|
||||
unlock_base: bool = True,
|
||||
patch: Optional[Dict[str, Any]] = None,
|
||||
user_playlog_list: Optional[List[Any]] = None,
|
||||
pre_new_item_list: bool = True,
|
||||
@@ -2690,6 +2696,7 @@ def UpsertUserAll(
|
||||
见 build_unlock_items 上方的源码依据。
|
||||
unlock_master: 解锁时是否一并解禁 Master 难度(默认 True)
|
||||
unlock_remaster: 解锁时是否一并解禁 Re:Master 难度(默认 True)
|
||||
unlock_base: False = 只解禁难度,**不解锁歌曲本体**(不写 kind5)
|
||||
patch: 同 extra_data 的旧接口(只收 dict,不补位串提示)。
|
||||
user_playlog_list: 本局成绩明细(可选;不传则用 play 自动构造一条)
|
||||
pre_new_item_list: True(默认)= 发包前先调 GetUserNewItemListApi
|
||||
@@ -2783,6 +2790,7 @@ def UpsertUserAll(
|
||||
snapshot=snapshot, play=p, patch=patch, extra_data=extra_data,
|
||||
unlock_music_ids=unlock_music_ids,
|
||||
unlock_master=unlock_master, unlock_remaster=unlock_remaster,
|
||||
unlock_base=unlock_base,
|
||||
login_date_time=login_date_time, auth_date_time=auth_date_time,
|
||||
place_id=place_id, place_name=place_name,
|
||||
region_id=region_id, region_name=region_name, client_id=client_id,
|
||||
|
||||
Reference in new issue
Block a user