Commit d9ae9bd1afb1ae6ef7919fa8513e19c5308f1cf2
1 parent
b14a14b0
Exists in
master
and in
1 other branch
feat✨:卡牌活动配置加上轮数
Showing
2 changed files
with
2 additions
and
0 deletions
Show diff stats
configs/confcardholder/config.go
| ... | ... | @@ -83,6 +83,7 @@ type ActivityConfigRaw struct { |
| 83 | 83 | // ActivityConfigClient 卡牌活动配置 给客户端数据 |
| 84 | 84 | type ActivityConfigClient struct { |
| 85 | 85 | Id int64 `form:"id" json:"id"` // ID |
| 86 | + Round int `form:"round" json:"round"` // 轮数 | |
| 86 | 87 | IconPath string `form:"icon_path" json:"icon_path"` // icon资源路径 |
| 87 | 88 | RoundAwards map[string]string `form:"round_awards" json:"round_awards"` // 轮次奖励配置 |
| 88 | 89 | Albums []AlbumConfig `form:"albums" json:"albums"` // 卡组配置 | ... | ... |
configs/confcardholder/decode.go
| ... | ... | @@ -118,6 +118,7 @@ func (c *ActivityConfig) Decode(gameId string, rawData any) { |
| 118 | 118 | func (c *ActivityConfig) GenerateConfigClient() { |
| 119 | 119 | configClient := &ActivityConfigClient{ |
| 120 | 120 | Id: c.Id, |
| 121 | + Round: c.Round, | |
| 121 | 122 | IconPath: c.IconPath, |
| 122 | 123 | RoundAwards: c.Awards, |
| 123 | 124 | Albums: make([]AlbumConfig, 0), | ... | ... |