Commit 55e939281b0d349db72e743d279a2e424db6ea0d
1 parent
df149dfa
Exists in
master
and in
1 other branch
test✅:调试签名验证日志
Showing
4 changed files
with
8 additions
and
3 deletions
Show diff stats
conf/local.conf
conf/pre.conf
conf/prod.conf
middleware/sign/index.go
| ... | ... | @@ -12,6 +12,7 @@ import ( |
| 12 | 12 | "encoding/json" |
| 13 | 13 | "errors" |
| 14 | 14 | "fmt" |
| 15 | + "reflect" | |
| 15 | 16 | |
| 16 | 17 | "sort" |
| 17 | 18 | "strings" |
| ... | ... | @@ -170,6 +171,10 @@ func Check(req []byte, postdata interface{}, checkSign bool, checkToken bool) (c |
| 170 | 171 | |
| 171 | 172 | var b bool |
| 172 | 173 | |
| 174 | + fmt.Println(postdata) | |
| 175 | + fmt.Println(reflect.TypeOf(postdata)) | |
| 176 | + fmt.Println(reflect.TypeOf(postdata).Kind()) | |
| 177 | + | |
| 173 | 178 | b, err = valid.Valid(postdata) |
| 174 | 179 | if err != nil { |
| 175 | 180 | code = code_msg.RECODE_PARAMERROR | ... | ... |