|
|
@@ -10,6 +10,7 @@ import (
|
|
|
"crypto/md5"
|
|
|
"crypto/sha1"
|
|
|
"encoding/hex"
|
|
|
+ "fmt"
|
|
|
"hash"
|
|
|
"sort"
|
|
|
)
|
|
|
@@ -50,6 +51,8 @@ func Sign(parameters map[string]string, apiKey string, fn func() hash.Hash) stri
|
|
|
buf = buf[:0]
|
|
|
buf = append(buf, "key="...)
|
|
|
buf = append(buf, apiKey...)
|
|
|
+ fmt.Printf("----buf %v", buf)
|
|
|
+ fmt.Printf("----buf %v", buf)
|
|
|
h.Write(buf)
|
|
|
|
|
|
signature := make([]byte, h.Size()*2)
|