Commit 6722fc8b5b69d81562f1a18ee8f6cc05e7542e3f
1 parent
5c674f00
Exists in
master
and in
1 other branch
test✅:调试签名验证日志
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
middleware/sign/index.go
| ... | ... | @@ -12,6 +12,8 @@ import ( |
| 12 | 12 | "encoding/json" |
| 13 | 13 | "errors" |
| 14 | 14 | "fmt" |
| 15 | + "reflect" | |
| 16 | + | |
| 15 | 17 | "sort" |
| 16 | 18 | "strings" |
| 17 | 19 | "unicode/utf8" |
| ... | ... | @@ -169,6 +171,11 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c |
| 169 | 171 | |
| 170 | 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 | 179 | b, err = valid.Valid(postdata) |
| 173 | 180 | if err != nil { |
| 174 | 181 | code = code_msg.RECODE_PARAMERROR | ... | ... |