From 3b1ef805b56f140470ad0e46742a0b9267d22706 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 4 Feb 2020 08:39:27 +0800 Subject: [PATCH] =?UTF-8?q?SNSDecodeMiniProgramData=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E9=9D=9Estruct=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/weixinapi/sns.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platformapi/weixinapi/sns.go b/platformapi/weixinapi/sns.go index b8b80027..fe602a8d 100644 --- a/platformapi/weixinapi/sns.go +++ b/platformapi/weixinapi/sns.go @@ -125,7 +125,12 @@ func (a *API) SNSCode2Session(jsCode string) (sessionInfo *SessionInfo, err erro return nil, err } +// 待删除 func (a *API) SNSDecodeMiniProgramData(encryptedData, sessionKey, iv string) (decryptedData []byte, err error) { + return SNSDecodeMiniProgramData(encryptedData, sessionKey, iv) +} + +func SNSDecodeMiniProgramData(encryptedData, sessionKey, iv string) (decryptedData []byte, err error) { decodedDataList, err := utils.Base64DecodeMultiString(encryptedData, sessionKey, iv) if err != nil { return nil, err