Commit d9ae9bd1afb1ae6ef7919fa8513e19c5308f1cf2

Authored by 王家文
1 parent b14a14b0
Exists in master and in 1 other branch dev-wjw

feat✨:卡牌活动配置加上轮数

configs/confcardholder/config.go
@@ -83,6 +83,7 @@ type ActivityConfigRaw struct { @@ -83,6 +83,7 @@ type ActivityConfigRaw struct {
83 // ActivityConfigClient 卡牌活动配置 给客户端数据 83 // ActivityConfigClient 卡牌活动配置 给客户端数据
84 type ActivityConfigClient struct { 84 type ActivityConfigClient struct {
85 Id int64 `form:"id" json:"id"` // ID 85 Id int64 `form:"id" json:"id"` // ID
  86 + Round int `form:"round" json:"round"` // 轮数
86 IconPath string `form:"icon_path" json:"icon_path"` // icon资源路径 87 IconPath string `form:"icon_path" json:"icon_path"` // icon资源路径
87 RoundAwards map[string]string `form:"round_awards" json:"round_awards"` // 轮次奖励配置 88 RoundAwards map[string]string `form:"round_awards" json:"round_awards"` // 轮次奖励配置
88 Albums []AlbumConfig `form:"albums" json:"albums"` // 卡组配置 89 Albums []AlbumConfig `form:"albums" json:"albums"` // 卡组配置
configs/confcardholder/decode.go
@@ -118,6 +118,7 @@ func (c *ActivityConfig) Decode(gameId string, rawData any) { @@ -118,6 +118,7 @@ func (c *ActivityConfig) Decode(gameId string, rawData any) {
118 func (c *ActivityConfig) GenerateConfigClient() { 118 func (c *ActivityConfig) GenerateConfigClient() {
119 configClient := &ActivityConfigClient{ 119 configClient := &ActivityConfigClient{
120 Id: c.Id, 120 Id: c.Id,
  121 + Round: c.Round,
121 IconPath: c.IconPath, 122 IconPath: c.IconPath,
122 RoundAwards: c.Awards, 123 RoundAwards: c.Awards,
123 Albums: make([]AlbumConfig, 0), 124 Albums: make([]AlbumConfig, 0),