浏览代码

更改app支付 package签名

abiao 4 年之前
父节点
当前提交
dd1ebc6112
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      go/gopath/src/github.com/chanxuehong/wechat/mch/sign.go

+ 3 - 0
go/gopath/src/github.com/chanxuehong/wechat/mch/sign.go

@@ -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)