aa
This commit is contained in:
@@ -343,8 +343,9 @@ type UserInfoWithWeixin struct {
|
||||
// @router /GetUserByMiniInfo [post]
|
||||
func (c *Auth2Controller) GetUserByMiniInfo() {
|
||||
c.callGetUserByMiniInfo(func(params *tAuth2GetUserByMiniInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
authInfo := &auth2.AuthInfo{}
|
||||
result := api.Cacher.Get(params.Token)
|
||||
authInfo := result.(*auth2.AuthInfo)
|
||||
utils.Map2StructByJson(result, &authInfo, false)
|
||||
// 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)
|
||||
|
||||
Reference in New Issue
Block a user