修改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

@@ -333,7 +333,7 @@ class DiceRewardConfigLogic extends BaseLogic
$config = DiceLotteryPoolConfig::find($lotteryConfigId);
}
if (!$config) {
$config = DiceLotteryPoolConfig::where('type', 0)->find();
$config = DiceLotteryPoolConfig::where('name', 'default')->find();
}
if ($config) {
$tierWeights = [