diff --git a/controllers/auth2.go b/controllers/auth2.go index d86cf0351..109abd360 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -363,12 +363,12 @@ func (c *Auth2Controller) GetUserByMiniInfo() { // result := api.Cacher.Get(params.Token) // utils.Map2StructByJson(result.(map[string]interface{}), &authInfo, false) jsCode := "" - if params.AuthType == weixin.AuthTypeMini { - jsCode = GetComposedCode(&c.Controller, params.JsCode) - } - if params.AuthType == weixin.AuthTypeWxApp { - jsCode = GetComposedCode2(&c.Controller, params.JsCode) - } + // if params.AuthType == weixin.AuthTypeMini { + // jsCode = GetComposedCode(&c.Controller, params.JsCode) + // } + // if params.AuthType == weixin.AuthTypeWxApp { + jsCode = GetComposedCode2(&c.Controller, params.JsCode) + // } if err == nil { decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, jsCode, params.Data, params.Iv) if err = err2; err == nil {