1.1 KiB
1.1 KiB
移除 DiceRewardConfig 表 s_start_index / n_start_index 的说明(已处理)
s_start_index(顺时针起始索引)、n_start_index(逆时针起始索引)已从业务与表单中移除,起始索引统一使用 dice_reward.start_index。
1. 当前状态(移除后无影响)
| 位置 | 处理情况 |
|---|---|
| PlayStartLogic | 已使用 DiceReward 的 start_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_index、n_start_index列。
执行前请确认已通过「创建奖励对照」生成 dice_reward 数据,且 dice_reward.start_index 已正确写入。