fix: add missing poolTag to default prize config

The default configuration was missing poolTag for all rounds,
causing the lottery to draw from all participants instead of
filtering by generation/zodiac tags when prizes.json fails to load.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
empty
2026-01-26 17:35:49 +08:00
parent 2b34d14e96
commit a89d844f7b

View File

@@ -61,10 +61,10 @@ class PrizeConfigService {
private getDefaults(): PrizeConfigFile { private getDefaults(): PrizeConfigFile {
return { return {
prizes: [ prizes: [
{ round: 1 as LotteryRound, level: '第一轮抽奖', name: '幸运伴手礼', winnerCount: 7 }, { round: 1 as LotteryRound, level: '第一轮抽奖', name: '幸运伴手礼', winnerCount: 7, poolTag: '6070' },
{ round: 2 as LotteryRound, level: '第二轮抽奖', name: '幸运伴手礼', winnerCount: 3 }, { round: 2 as LotteryRound, level: '第二轮抽奖', name: '幸运伴手礼', winnerCount: 3, poolTag: '80' },
{ round: 3 as LotteryRound, level: '第三轮抽奖', name: '幸运伴手礼', winnerCount: 4 }, { round: 3 as LotteryRound, level: '第三轮抽奖', name: '幸运伴手礼', winnerCount: 4, poolTag: '90' },
{ round: 4 as LotteryRound, level: '第四轮抽奖', name: '幸运伴手礼', winnerCount: 1, zodiacFilter: 'horse' }, { round: 4 as LotteryRound, level: '第四轮抽奖', name: '幸运伴手礼', winnerCount: 1, poolTag: 'horse', zodiacFilter: 'horse' },
], ],
settings: { settings: {
minStormDuration: 3000, minStormDuration: 3000,