diff --git a/configs/confcardholder/config.go b/configs/confcardholder/config.go index e3ca142..6ae79b5 100644 --- a/configs/confcardholder/config.go +++ b/configs/confcardholder/config.go @@ -90,14 +90,14 @@ type AlbumConfig struct { // CardConfig 卡牌表 type CardConfig struct { - Id int `json:"id"` // ID - Name int `json:"name"` // 卡牌名字 - Icon int `json:"icon"` // 卡牌图标 - Desc int `json:"desc"` // 卡牌描述 - SetId int `json:"album_setid"` // 卡组id - Star int `json:"star"` // 星级 - IsGold int `json:"is_gold"` // 是否是金卡 - IsSend int `json:"is_send"` // 卡片是否可赠送 + Id int `json:"id"` // ID + Name int `json:"name"` // 卡牌名字 + Icon string `json:"icon"` // 卡牌图标 + Desc int `json:"desc"` // 卡牌描述 + SetId int `json:"album_setid"` // 卡组id + Star int `json:"star"` // 星级 + IsGold int `json:"is_gold"` // 是否是金卡 + IsSend int `json:"is_send"` // 卡片是否可赠送 } // OpenCardholderConfig 卡包开卡规则表 diff --git a/controllers/cardholder.go b/controllers/cardholder.go index ffa3e93..0b77013 100644 --- a/controllers/cardholder.go +++ b/controllers/cardholder.go @@ -13,14 +13,6 @@ type CardHolderController struct { // GetConfig 活动配置 func (c *CardHolderController) GetConfig() { req := new(models.ReqCardHolderGetConfig) - //req := models.ReqCardHolderGetConfig{} - //codeCheck, err := sign.Check(c.Ctx.Input.RequestBody, &req, true, true) - //if err != nil { - // resp := make(map[string]interface{}) - // resp = code_msg.CodeMsg(resp, codeCheck) - // c.RetData(resp) - // return - //} if !c.GetPostData(req) { return diff --git a/middleware/sign/index.go b/middleware/sign/index.go index ac945b9..f0284df 100644 --- a/middleware/sign/index.go +++ b/middleware/sign/index.go @@ -12,8 +12,6 @@ import ( "encoding/json" "errors" "fmt" - "reflect" - "sort" "strings" "unicode/utf8" @@ -171,11 +169,6 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c var b bool - lxalilog.Errors(postdata) - lxalilog.Errors(reflect.TypeOf(postdata)) - lxalilog.Errors(uint(reflect.TypeOf(postdata).Kind())) - lxalilog.Errors(reflect.TypeOf(postdata).Kind()) - b, err = valid.Valid(postdata) if err != nil { code = code_msg.RECODE_PARAMERROR -- libgit2 0.21.0