updateuser

This commit is contained in:
苏尹岚
2020-11-09 09:40:07 +08:00
parent 6b9eb80be9
commit bfc99196a8
2 changed files with 11 additions and 1 deletions

View File

@@ -106,7 +106,6 @@ func signParam(signType string, params map[string]interface{}) (sig string) {
sort.Sort(sort.StringSlice(valueList))
valueList = append(valueList, fmt.Sprintf("key=%s", globals.WxpayAppKey))
sig = strings.Join(valueList, "&")
fmt.Println("test111111111111111111111111111111111111111111111", sig)
var binSig []byte
if signType == sigTypeSha256 {
mac := hmac.New(sha256.New, []byte(globals.WxpayAppKey))