Pārlūkot izejas kodu

更改app支付 package签名

abiao 4 gadi atpakaļ
vecāks
revīzija
3ff00fae92

+ 1 - 2
go/gopath/src/github.com/chanxuehong/wechat/mch/sign.go

@@ -55,8 +55,7 @@ func Sign(parameters map[string]string, apiKey string, fn func() hash.Hash) stri
 	buf = append(buf, apiKey...)
 	h.Write(buf)
 
-	fmt.Printf("----bufs2 %v", &buf)
-	fmt.Printf("----hhhhh %v", h)
+	fmt.Printf("----bufs2 %s", string(buf))
 	signature := make([]byte, h.Size()*2)
 	hex.Encode(signature, h.Sum(nil))
 	return string(bytes.ToUpper(signature))