From e16b3b5e6ca60f6b026081d9b4f835017a828c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 23 Nov 2020 11:02:48 +0800 Subject: [PATCH] test --- platformapi/wxpayapi/wxpayapi.go | 1 + 1 file changed, 1 insertion(+) diff --git a/platformapi/wxpayapi/wxpayapi.go b/platformapi/wxpayapi/wxpayapi.go index 878453db..a2245759 100644 --- a/platformapi/wxpayapi/wxpayapi.go +++ b/platformapi/wxpayapi/wxpayapi.go @@ -442,6 +442,7 @@ func (a *API) signParam(signType string, params map[string]interface{}) (sig str sort.Sort(sort.StringSlice(valueList)) valueList = append(valueList, fmt.Sprintf("key=%s", a.appKey)) sig = strings.Join(valueList, "&") + fmt.Println("tettttttttttttttttttttttttttttttttttttttttt", sig) var binSig []byte if signType == sigTypeSha256 { mac := hmac.New(sha256.New, []byte(a.appKey))