aa
This commit is contained in:
@@ -69,7 +69,7 @@ func (a *MiniAuther) DecryptData(authInfo *auth2.AuthInfo, jsCode, encryptedData
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if authInfo.AuthBindInfo.Type != AuthTypeMini {
|
if authInfo.AuthBindInfo.Type != AuthTypeMini {
|
||||||
return "", ErrAuthTypeShouldBeMini
|
// return "", ErrAuthTypeShouldBeMini
|
||||||
}
|
}
|
||||||
sessionKey = authInfo.AuthBindInfo.UserData.(string)
|
sessionKey = authInfo.AuthBindInfo.UserData.(string)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -346,7 +346,6 @@ func (c *Auth2Controller) GetUserByMiniInfo() {
|
|||||||
authInfo := &auth2.AuthInfo{}
|
authInfo := &auth2.AuthInfo{}
|
||||||
result := api.Cacher.Get(params.Token)
|
result := api.Cacher.Get(params.Token)
|
||||||
utils.Map2StructByJson(result.(map[string]interface{}), &authInfo, false)
|
utils.Map2StructByJson(result.(map[string]interface{}), &authInfo, false)
|
||||||
fmt.Println("1111111111111", utils.Format4Output(authInfo, true))
|
|
||||||
// authInfo, err := api.Cacher.Get(params.Token)
|
// authInfo, err := api.Cacher.Get(params.Token)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, GetComposedCode(&c.Controller, params.JsCode), params.Data, params.Iv)
|
decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, GetComposedCode(&c.Controller, params.JsCode), params.Data, params.Iv)
|
||||||
|
|||||||
Reference in New Issue
Block a user