From 2d81f1d4521b7279f60511c18cb058811f9977b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 12 Apr 2021 14:36:16 +0800 Subject: [PATCH] aa --- controllers/auth2.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/controllers/auth2.go b/controllers/auth2.go index 4eb18e49d..f183ae649 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -363,8 +363,10 @@ 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) + if params.JsCode == "" { + result := api.Cacher.Get(params.Token) + utils.Map2StructByJson(result.(map[string]interface{}), &authInfo, false) + } str := []string{ params.AppID, params.JsCode,