修改DiceLotteryPoolConfig-type改为name映射

This commit is contained in:
2026-03-17 17:09:10 +08:00
parent d4cf708bc1
commit e7b8f4cae9
18 changed files with 64 additions and 115 deletions

View File

@@ -69,7 +69,7 @@ The exact implementation is in the dice game logic layer and related services. A
3. Get or create lottery pool:
- `LotteryService::getOrCreate()`
- Reads from Redis; if missing, reads from DB (for example, `DiceLotteryPoolConfig::where('type', 0/1)->find()`).
- Reads from Redis; if missing, reads from DB (for example, `DiceLotteryPoolConfig::where('name','default/killScore')->find()`).
4. Load concrete pool config for this play:
- `DiceLotteryPoolConfig::find($configId)`

View File

@@ -67,7 +67,7 @@
3. **获取或创建奖池LotteryService**
- 调用 `LotteryService::getOrCreate()`
- 优先从 Redis 中读取奖池信息;
- 若缓存不存在,则从 DB 中加载:如 `DiceLotteryPoolConfig::where('type', 0/1)->find()`
- 若缓存不存在,则从 DB 中加载:如 `DiceLotteryPoolConfig::where('name','default/killScore')->find()`
4. **根据本次玩法加载奖池配置**
- 调用 `DiceLotteryPoolConfig::find($configId)`