Jerry 7 лет назад
Родитель
Сommit
b62d7b2db0
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      wechat_params.go

+ 2 - 0
wechat_params.go

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