From e0661320052bb1250d088bd68db59b989ec52da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 2 Apr 2021 17:53:09 +0800 Subject: [PATCH] aa --- controllers/auth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/auth2.go b/controllers/auth2.go index ebf40e638..22d1ab12d 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -341,7 +341,7 @@ type UserInfoWithWeixin struct { // @router /GetUserByMiniInfo [post] func (c *Auth2Controller) GetUserByMiniInfo() { c.callGetUserByMiniInfo(func(params *tAuth2GetUserByMiniInfoParams) (retVal interface{}, errCode string, err error) { - authInfo := &auth2.AuthInfo{} + authInfo, err := params.Ctx.GetV2AuthInfo() if err == nil { decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, GetComposedCode(&c.Controller, params.JsCode), params.Data, params.Iv) if err = err2; err == nil {