收藏室优化

This commit is contained in:
hahwu 2025-03-17 20:10:36 +08:00
parent d83adcf2d9
commit 3d295a8291

View File

@ -24,7 +24,9 @@ const (
)
func (c *Collect) InitData() {
c.Reward = make([]int, 0)
if c.Reward == nil {
c.Reward = make([]int, 0)
}
if len(c.Jackpot) == 0 {
c.Jackpot = initJackpot()
}