收藏室优化

This commit is contained in:
hahwu 2025-03-17 20:10:36 +08:00
parent 9e7be7ce01
commit d693b6d314

View File

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