Commit 995d4bb17e132ece3453e65d9cb5f2b7904ea76c
1 parent
497babac
Exists in
master
and in
1 other branch
feat✨:游戏功能配置
Showing
3 changed files
with
8 additions
and
23 deletions
Show diff stats
configs/confcardholder/config.go
| @@ -90,14 +90,14 @@ type AlbumConfig struct { | @@ -90,14 +90,14 @@ type AlbumConfig struct { | ||
| 90 | 90 | ||
| 91 | // CardConfig 卡牌表 | 91 | // CardConfig 卡牌表 |
| 92 | type CardConfig struct { | 92 | type CardConfig struct { |
| 93 | - Id int `json:"id"` // ID | ||
| 94 | - Name int `json:"name"` // 卡牌名字 | ||
| 95 | - Icon int `json:"icon"` // 卡牌图标 | ||
| 96 | - Desc int `json:"desc"` // 卡牌描述 | ||
| 97 | - SetId int `json:"album_setid"` // 卡组id | ||
| 98 | - Star int `json:"star"` // 星级 | ||
| 99 | - IsGold int `json:"is_gold"` // 是否是金卡 | ||
| 100 | - IsSend int `json:"is_send"` // 卡片是否可赠送 | 93 | + Id int `json:"id"` // ID |
| 94 | + Name int `json:"name"` // 卡牌名字 | ||
| 95 | + Icon string `json:"icon"` // 卡牌图标 | ||
| 96 | + Desc int `json:"desc"` // 卡牌描述 | ||
| 97 | + SetId int `json:"album_setid"` // 卡组id | ||
| 98 | + Star int `json:"star"` // 星级 | ||
| 99 | + IsGold int `json:"is_gold"` // 是否是金卡 | ||
| 100 | + IsSend int `json:"is_send"` // 卡片是否可赠送 | ||
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | // OpenCardholderConfig 卡包开卡规则表 | 103 | // OpenCardholderConfig 卡包开卡规则表 |
controllers/cardholder.go
| @@ -13,14 +13,6 @@ type CardHolderController struct { | @@ -13,14 +13,6 @@ type CardHolderController struct { | ||
| 13 | // GetConfig 活动配置 | 13 | // GetConfig 活动配置 |
| 14 | func (c *CardHolderController) GetConfig() { | 14 | func (c *CardHolderController) GetConfig() { |
| 15 | req := new(models.ReqCardHolderGetConfig) | 15 | req := new(models.ReqCardHolderGetConfig) |
| 16 | - //req := models.ReqCardHolderGetConfig{} | ||
| 17 | - //codeCheck, err := sign.Check(c.Ctx.Input.RequestBody, &req, true, true) | ||
| 18 | - //if err != nil { | ||
| 19 | - // resp := make(map[string]interface{}) | ||
| 20 | - // resp = code_msg.CodeMsg(resp, codeCheck) | ||
| 21 | - // c.RetData(resp) | ||
| 22 | - // return | ||
| 23 | - //} | ||
| 24 | 16 | ||
| 25 | if !c.GetPostData(req) { | 17 | if !c.GetPostData(req) { |
| 26 | return | 18 | return |
middleware/sign/index.go
| @@ -12,8 +12,6 @@ import ( | @@ -12,8 +12,6 @@ import ( | ||
| 12 | "encoding/json" | 12 | "encoding/json" |
| 13 | "errors" | 13 | "errors" |
| 14 | "fmt" | 14 | "fmt" |
| 15 | - "reflect" | ||
| 16 | - | ||
| 17 | "sort" | 15 | "sort" |
| 18 | "strings" | 16 | "strings" |
| 19 | "unicode/utf8" | 17 | "unicode/utf8" |
| @@ -171,11 +169,6 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c | @@ -171,11 +169,6 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c | ||
| 171 | 169 | ||
| 172 | var b bool | 170 | var b bool |
| 173 | 171 | ||
| 174 | - lxalilog.Errors(postdata) | ||
| 175 | - lxalilog.Errors(reflect.TypeOf(postdata)) | ||
| 176 | - lxalilog.Errors(uint(reflect.TypeOf(postdata).Kind())) | ||
| 177 | - lxalilog.Errors(reflect.TypeOf(postdata).Kind()) | ||
| 178 | - | ||
| 179 | b, err = valid.Valid(postdata) | 172 | b, err = valid.Valid(postdata) |
| 180 | if err != nil { | 173 | if err != nil { |
| 181 | code = code_msg.RECODE_PARAMERROR | 174 | code = code_msg.RECODE_PARAMERROR |