v1进行时:UpsertUserAll回归基础包体(附加数据一律走extra_data)、解锁位串默认0、适配2026-10服务器维护(token一次性、上传冷却50s、买票冷却40s写入config)、新增落盘与日志开关
This commit is contained in:
1 parent
1d365cc948
commit
ed7d463519
12 files changed
+552
-271
No files matched your search
+6
-15
@@ -34,7 +34,7 @@ api 包 —— 统一导出
|
||||
UserLogout.py UserLogoutApi(登出)
|
||||
|
||||
上传 / 结算(有副作用的接口)
|
||||
UpsertUserAll.py ★ UpsertUserAllApi(上传成绩 + 解锁歌曲/解禁难度)
|
||||
UpsertUserAll.py ★ UpsertUserAllApi(上传成绩;附加内容一律走 extra_data)
|
||||
UpsertUserChargelog.py UpsertUserChargelogApi(购买功能票)
|
||||
GetNeedUserData.py ★ 结算快照编排(统一调用下面的取数脚本),
|
||||
并把结果落盘到 <工程根>/data/<userId>.json
|
||||
@@ -84,6 +84,7 @@ from .LogSetup import (
|
||||
get_level,
|
||||
set_level,
|
||||
is_debug,
|
||||
is_log_enabled,
|
||||
LEVEL_INFO,
|
||||
LEVEL_DEBUG,
|
||||
# 装饰器 / 兼容
|
||||
@@ -237,13 +238,6 @@ from .UpsertUserAll import (
|
||||
load_extra_data,
|
||||
merge_extra_data,
|
||||
verify_upsert_landing,
|
||||
# ★ 歌曲解锁(解禁):写进 userItemList 的 itemKind 5/6/7
|
||||
build_unlock_items,
|
||||
ITEM_KIND_MUSIC_UNLOCK,
|
||||
ITEM_KIND_MUSIC_UNLOCK_MASTER,
|
||||
ITEM_KIND_MUSIC_UNLOCK_REMASTER,
|
||||
ITEM_KIND_MUSIC_UNLOCK_STRONG,
|
||||
UNLOCK_MASTER_MIN_MUSIC_ID,
|
||||
default_user_weekly_data,
|
||||
default_user_2p_playlog,
|
||||
calc_play_special,
|
||||
@@ -273,6 +267,7 @@ from .GetNeedUserData import (
|
||||
PROJECT_ROOT,
|
||||
DATA_DIR,
|
||||
user_data_path,
|
||||
config_save_default,
|
||||
save_user_data,
|
||||
load_user_data,
|
||||
list_saved_user_ids,
|
||||
@@ -393,7 +388,6 @@ _API_FUNCS = (
|
||||
"merge_extra_data",
|
||||
"verify_upsert_landing",
|
||||
"build_user_all",
|
||||
"build_unlock_items",
|
||||
# --- 购买功能票 ---
|
||||
"UpsertUserChargelog",
|
||||
"ticket_name",
|
||||
@@ -467,7 +461,8 @@ __all__ = [
|
||||
# ---- 日志:自动跟踪 ----
|
||||
"autowrap", "get_called_apis",
|
||||
# ---- 日志:模式 ----
|
||||
"get_level", "set_level", "is_debug", "LEVEL_INFO", "LEVEL_DEBUG",
|
||||
"get_level", "set_level", "is_debug", "is_log_enabled",
|
||||
"LEVEL_INFO", "LEVEL_DEBUG",
|
||||
# ---- 日志:装饰器 / 兼容 ----
|
||||
"api_log", "get_logger",
|
||||
# ---- 日志:流程 ----
|
||||
@@ -496,10 +491,6 @@ __all__ = [
|
||||
# ---- 上传成绩 ----
|
||||
"UpsertUserAll", "PlayData", "build_play_from_config", "derive_play_characters",
|
||||
"load_extra_data", "merge_extra_data", "verify_upsert_landing",
|
||||
# ---- 歌曲解锁(解禁)----
|
||||
"build_unlock_items", "UNLOCK_MASTER_MIN_MUSIC_ID",
|
||||
"ITEM_KIND_MUSIC_UNLOCK", "ITEM_KIND_MUSIC_UNLOCK_MASTER",
|
||||
"ITEM_KIND_MUSIC_UNLOCK_REMASTER", "ITEM_KIND_MUSIC_UNLOCK_STRONG",
|
||||
# ---- 购买功能票 ----
|
||||
"UpsertUserChargelog", "ChargelogConfirmError", "ChargelogGuardError",
|
||||
# ---- 买票前置闸门(GetUserCharge 必须先跑过)----
|
||||
@@ -525,7 +516,7 @@ __all__ = [
|
||||
# ---- 快照编排 ----
|
||||
"GetNeedUserData", "save_snapshot", "load_snapshot",
|
||||
"summarize_snapshot", "DEFAULT_SNAPSHOT_NODES",
|
||||
"PROJECT_ROOT", "DATA_DIR", "user_data_path",
|
||||
"PROJECT_ROOT", "DATA_DIR", "user_data_path", "config_save_default",
|
||||
"save_user_data", "load_user_data", "list_saved_user_ids",
|
||||
# ---- 取数公共底座 ----
|
||||
"GetterEmptyRequestVO", "GetterUserIdRequestVO", "UserIdPageRequestVO",
|
||||
|
||||
Reference in new issue
Block a user