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