From 3cf833dac70c90c458d652dc0236f9cecfe93f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 8 Apr 2021 14:49:42 +0800 Subject: [PATCH] aa --- business/auth2/authprovider/weixin/weixin_mini.go | 2 +- controllers/auth2.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/business/auth2/authprovider/weixin/weixin_mini.go b/business/auth2/authprovider/weixin/weixin_mini.go index 29be9b511..8cc2547c2 100644 --- a/business/auth2/authprovider/weixin/weixin_mini.go +++ b/business/auth2/authprovider/weixin/weixin_mini.go @@ -69,7 +69,7 @@ func (a *MiniAuther) DecryptData(authInfo *auth2.AuthInfo, jsCode, encryptedData } } else { if authInfo.AuthBindInfo.Type != AuthTypeMini { - return "", ErrAuthTypeShouldBeMini + // return "", ErrAuthTypeShouldBeMini } sessionKey = authInfo.AuthBindInfo.UserData.(string) } diff --git a/controllers/auth2.go b/controllers/auth2.go index 336c143f0..88d45da48 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -346,7 +346,6 @@ func (c *Auth2Controller) GetUserByMiniInfo() { authInfo := &auth2.AuthInfo{} result := api.Cacher.Get(params.Token) utils.Map2StructByJson(result.(map[string]interface{}), &authInfo, false) - fmt.Println("1111111111111", utils.Format4Output(authInfo, true)) // authInfo, err := api.Cacher.Get(params.Token) if err == nil { decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, GetComposedCode(&c.Controller, params.JsCode), params.Data, params.Iv)