修改为playCount不变

UpsertUserAll 默认不再把 userData.playCount / currentPlayCount 加 1。

- 新增 config.PLAY_USER_PLAY_COUNT_GAIN = 0(config.py.example 同步)
- PlayData 新增 user_play_count_gain 字段,默认取该常量
- 落库回查改判据:增量 0 时看 lastPlayDate 是否更新,而不是 playCount 是否变大
- 想复刻真机 +1 就把常量或 user_play_count_gain 设成 1
- selftest 相应更新,并新增显式 gain=1 的回归(238 项全绿)
This commit is contained in:
2026-10-06 19:22:13 +08:00
parent 05c3f222fa
commit 494b40db44
5 changed files with 148 additions and 20 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ def show_charges(user_id, label):
def parse_args(argv):
opts = {"qr": "", "charge_id": 5, "send": False, "list": False,
"debug": False, "skip_entry": False, "wait_before": 5.0}
"debug": False, "skip_entry": False, "wait_before": 30.0}
i = 0
while i < len(argv):
a = argv[i]