Commit 8b0503232b0a9c75826cf7f4547e724cbe5d5a84

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

test✅:调试签名验证日志

controllers/cardholder.go
... ... @@ -13,7 +13,7 @@ type CardHolderController struct {
13 13 // GetConfig 活动配置
14 14 func (c *CardHolderController) GetConfig() {
15 15 req := new(models.ReqCardHolderGetConfig)
16   - if !c.GetPostData(req) {
  16 + if !c.GetPostData(*req) {
17 17 return
18 18 }
19 19  
... ...
middleware/sign/index.go
... ... @@ -171,9 +171,9 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c
171 171  
172 172 var b bool
173 173  
174   - fmt.Println(postdata)
175   - fmt.Println(reflect.TypeOf(postdata))
176   - fmt.Println(reflect.TypeOf(postdata).Kind())
  174 + lxalilog.Errors(postdata)
  175 + lxalilog.Errors(reflect.TypeOf(postdata))
  176 + lxalilog.Errors(reflect.TypeOf(postdata).Kind())
177 177  
178 178 b, err = valid.Valid(postdata)
179 179 if err != nil {
... ...