aa
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/weixinapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/auth2"
|
||||
@@ -341,7 +343,9 @@ type UserInfoWithWeixin struct {
|
||||
// @router /GetUserByMiniInfo [post]
|
||||
func (c *Auth2Controller) GetUserByMiniInfo() {
|
||||
c.callGetUserByMiniInfo(func(params *tAuth2GetUserByMiniInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
authInfo, err := params.Ctx.GetV2AuthInfo()
|
||||
result := api.Cacher.Get(params.Token)
|
||||
authInfo := result.(*auth2.AuthInfo)
|
||||
// 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)
|
||||
if err = err2; err == nil {
|
||||
|
||||
Reference in New Issue
Block a user