jds订单整起
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user