jds订单整起

This commit is contained in:
苏尹岚
2020-07-31 09:30:35 +08:00
parent 92136bd93f
commit b8df7dbdac
2 changed files with 12 additions and 10 deletions

View File

@@ -78,7 +78,6 @@ func (a *API) signParam(params map[string]interface{}) (sig string) {
}
sort.Sort(sort.StringSlice(valueList))
sig = strings.Join(valueList, "&")
fmt.Println("sig", sig)
key := []byte(a.secretKey)
mac := hmac.New(sha1.New, key)
mac.Write([]byte(sig))