Files
dafuweng-saiadmin6.x/server/docs/DICE_REWARD_CONFIG_START_INDEX_IMPACT.md
2026-03-16 09:10:39 +08:00

1.1 KiB
Raw Blame History

移除 DiceRewardConfig 表 s_start_index / n_start_index 的说明(已处理)

s_start_index(顺时针起始索引)、n_start_index(逆时针起始索引)已从业务与表单中移除,起始索引统一使用 dice_reward.start_index

1. 当前状态(移除后无影响)

位置 处理情况
PlayStartLogic 已使用 DiceRewardstart_index,不读 config无影响
DiceRewardLogic::getListWithConfig 已去掉对 config 的 join 与回填,仅使用 r.start_index
DiceRewardConfigValidate 已从规则与 save/update 场景中删除这两项
奖励配置编辑弹窗 已移除「顺时针/逆时针起始索引」表单项及提交字段
DiceRewardConfig 模型 已从属性注释中删除

2. 数据库表结构

若表中仍有这两列,可执行:

  • server/db/dice_reward_config_drop_start_index.sql:删除 s_start_indexn_start_index 列。

执行前请确认已通过「创建奖励对照」生成 dice_reward 数据,且 dice_reward.start_index 已正确写入。