This commit is contained in:
苏尹岚
2021-04-08 14:28:19 +08:00
parent 4a0eda6233
commit 0857bf1048

View File

@@ -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)