Commit 6722fc8b5b69d81562f1a18ee8f6cc05e7542e3f

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

test✅:调试签名验证日志

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
middleware/sign/index.go
@@ -12,6 +12,8 @@ import ( @@ -12,6 +12,8 @@ import (
12 "encoding/json" 12 "encoding/json"
13 "errors" 13 "errors"
14 "fmt" 14 "fmt"
  15 + "reflect"
  16 +
15 "sort" 17 "sort"
16 "strings" 18 "strings"
17 "unicode/utf8" 19 "unicode/utf8"
@@ -169,6 +171,11 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c @@ -169,6 +171,11 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c
169 171
170 var b bool 172 var b bool
171 173
  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 +
172 b, err = valid.Valid(postdata) 179 b, err = valid.Valid(postdata)
173 if err != nil { 180 if err != nil {
174 code = code_msg.RECODE_PARAMERROR 181 code = code_msg.RECODE_PARAMERROR