From 45026edd51e4bbdbaa3b19eda2c6a648e99b4afb 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 16:06:00 +0800 Subject: [PATCH] wx --- platformapi/wxpayapi/wxpayapi.go | 1 + 1 file changed, 1 insertion(+) diff --git a/platformapi/wxpayapi/wxpayapi.go b/platformapi/wxpayapi/wxpayapi.go index ae44ff5a..52da1188 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("tetttttttttttttttttttttttttttttttttttttttttt", sig) var binSig []byte if signType == sigTypeSha256 { mac := hmac.New(sha256.New, []byte(a.appKey))