From d9ae9bd1afb1ae6ef7919fa8513e19c5308f1cf2 Mon Sep 17 00:00:00 2001 From: 王家文 Date: Mon, 29 Apr 2024 17:49:24 +0800 Subject: [PATCH] feat✨:卡牌活动配置加上轮数 --- configs/confcardholder/config.go | 1 + configs/confcardholder/decode.go | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configs/confcardholder/config.go b/configs/confcardholder/config.go index b259b94..7446d6a 100644 --- a/configs/confcardholder/config.go +++ b/configs/confcardholder/config.go @@ -83,6 +83,7 @@ type ActivityConfigRaw struct { // ActivityConfigClient 卡牌活动配置 给客户端数据 type ActivityConfigClient struct { Id int64 `form:"id" json:"id"` // ID + Round int `form:"round" json:"round"` // 轮数 IconPath string `form:"icon_path" json:"icon_path"` // icon资源路径 RoundAwards map[string]string `form:"round_awards" json:"round_awards"` // 轮次奖励配置 Albums []AlbumConfig `form:"albums" json:"albums"` // 卡组配置 diff --git a/configs/confcardholder/decode.go b/configs/confcardholder/decode.go index 5f84730..629d92d 100644 --- a/configs/confcardholder/decode.go +++ b/configs/confcardholder/decode.go @@ -118,6 +118,7 @@ func (c *ActivityConfig) Decode(gameId string, rawData any) { func (c *ActivityConfig) GenerateConfigClient() { configClient := &ActivityConfigClient{ Id: c.Id, + Round: c.Round, IconPath: c.IconPath, RoundAwards: c.Awards, Albums: make([]AlbumConfig, 0), -- libgit2 0.21.0