|
@@ -6,6 +6,7 @@ import (
|
|
|
"crypto/md5"
|
|
"crypto/md5"
|
|
|
"crypto/sha256"
|
|
"crypto/sha256"
|
|
|
"encoding/hex"
|
|
"encoding/hex"
|
|
|
|
|
+ "log"
|
|
|
"strings"
|
|
"strings"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -25,7 +26,7 @@ func GetMiniPaySign(appId, timeStamp, nonceStr, packages, signType, secretKey st
|
|
|
buffer.WriteString("&key=")
|
|
buffer.WriteString("&key=")
|
|
|
buffer.WriteString(secretKey)
|
|
buffer.WriteString(secretKey)
|
|
|
signStr := buffer.String()
|
|
signStr := buffer.String()
|
|
|
-
|
|
|
|
|
|
|
+ log.Println("signStr:::", signStr)
|
|
|
var hashSign []byte
|
|
var hashSign []byte
|
|
|
if signType == SignType_MD5 {
|
|
if signType == SignType_MD5 {
|
|
|
hash := md5.New()
|
|
hash := md5.New()
|