瀏覽代碼

fix param

Jerry 7 年之前
父節點
當前提交
b62d7b2db0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      wechat_params.go

+ 2 - 0
wechat_params.go

@@ -6,6 +6,7 @@ import (
 	"crypto/md5"
 	"crypto/md5"
 	"crypto/sha256"
 	"crypto/sha256"
 	"encoding/hex"
 	"encoding/hex"
+	"log"
 	"strings"
 	"strings"
 )
 )
 
 
@@ -34,6 +35,7 @@ func GetMiniPaySign(appId, nonceStr, prepayId, signType, timeStamp, secretKey st
 
 
 	var hashSign []byte
 	var hashSign []byte
 	if signType == SignType_MD5 {
 	if signType == SignType_MD5 {
+		log.Println("signStr:", signStr)
 		hash := md5.New()
 		hash := md5.New()
 		hash.Write([]byte(signStr))
 		hash.Write([]byte(signStr))
 		hashSign = hash.Sum(nil)
 		hashSign = hash.Sum(nil)