Commit 995d4bb17e132ece3453e65d9cb5f2b7904ea76c

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

feat✨:游戏功能配置

configs/confcardholder/config.go
... ... @@ -90,14 +90,14 @@ type AlbumConfig struct {
90 90  
91 91 // CardConfig 卡牌表
92 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 103 // OpenCardholderConfig 卡包开卡规则表
... ...
controllers/cardholder.go
... ... @@ -13,14 +13,6 @@ type CardHolderController struct {
13 13 // GetConfig 活动配置
14 14 func (c *CardHolderController) GetConfig() {
15 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 17 if !c.GetPostData(req) {
26 18 return
... ...
middleware/sign/index.go
... ... @@ -12,8 +12,6 @@ import (
12 12 "encoding/json"
13 13 "errors"
14 14 "fmt"
15   - "reflect"
16   -
17 15 "sort"
18 16 "strings"
19 17 "unicode/utf8"
... ... @@ -171,11 +169,6 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c
171 169  
172 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 172 b, err = valid.Valid(postdata)
180 173 if err != nil {
181 174 code = code_msg.RECODE_PARAMERROR
... ...