From 5971ba4e60a29d69853f259c7d6d1342ab745d9c Mon Sep 17 00:00:00 2001 From: Txiaochen Date: Wed, 7 Oct 2026 00:25:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=9AGrade=20=E6=81=92?= =?UTF-8?q?=E4=B8=BA=200=EF=BC=88=E6=BA=90=E7=A0=81=E5=AE=9E=E8=AF=81?= =?UTF-8?q?=E6=98=AF=E6=AE=B5=E4=BD=8D=20Dan=EF=BC=8C=E4=B8=8D=E6=98=AF?= =?UTF-8?q?=E6=9B=B2=E7=9B=AE=E8=AF=84=E7=BA=A7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- api/upsert_user_all.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 3a74ee1..7c0dab2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # ---- 运行产物 ---- -data/ # 每账号一份用户数据快照(.json) +# 每账号一份用户数据快照(.json) +data/ logs/ __pycache__/ *.pyc diff --git a/api/upsert_user_all.py b/api/upsert_user_all.py index 4b9db74..9fae97d 100644 --- a/api/upsert_user_all.py +++ b/api/upsert_user_all.py @@ -154,9 +154,9 @@ PLAY_AFTER_GRADE_RANK = 1 #: ★ 是否在 userMusicDetailList 里搜同 (musicId, level) 来推导 beforeGrade / afterGrade。 #: ⚠ 源码实证这三个字段其实是**段位(Dan)**(VOExtensions.cs:1419-1421), #: 真机无段位账号一律 0 / 0 / 1。 -#: True = 按使用方要求从曲目记录推(默认) -#: False = 严格复刻真机,一律 0 -DERIVE_GRADE_FROM_MUSIC_DETAIL = True +#: False = **一律 0**(默认,与真机一致 —— 使用方已确认走这条) +#: True = 从曲目记录推(仅调试用) +DERIVE_GRADE_FROM_MUSIC_DETAIL = False from .log_setup import log_debug, log_error, log_info, log_warning from .maimai_net import (