Commit 7529d4bb90c9b84e1e36281cd1e374d7503724cb

Authored by 王家文
1 parent 4c71839e
Exists in master

feat✨:卡牌活动星星商店的卡包可能为多个

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
service/cardholder/player.go
@@ -49,6 +49,10 @@ func LoadPlayer(gameId string, playerUid int64, config *confcardholder.ActivityC @@ -49,6 +49,10 @@ func LoadPlayer(gameId string, playerUid int64, config *confcardholder.ActivityC
49 player.ActivityId = configId 49 player.ActivityId = configId
50 player.Details = NewPlayerDetails() 50 player.Details = NewPlayerDetails()
51 51
  52 + if player.Details.SequenceId == 0 {
  53 + player.Details.SequenceId = 1
  54 + }
  55 +
52 // 使用剩余的星星数来自动兑换卡包 56 // 使用剩余的星星数来自动兑换卡包
53 player.Details.LastStarCount = starCount 57 player.Details.LastStarCount = starCount
54 NextActivityAutoExchange(gameId, player, config) 58 NextActivityAutoExchange(gameId, player, config)