This commit is contained in:
苏尹岚
2020-11-20 11:30:40 +08:00
parent 969f597557
commit b2ac231af3
2 changed files with 8 additions and 9 deletions

View File

@@ -302,7 +302,7 @@ type UserInfoWithWeixin struct {
// @router /GetUserByMiniInfo [get]
func (c *User2Controller) GetUserByMiniInfo() {
c.callGetUserByMiniInfo(func(params *tUser2GetUserByMiniInfoParams) (retVal interface{}, errCode string, err error) {
authInfo, err := params.Ctx.GetV2AuthInfo()
authInfo := &auth2.AuthInfo{}
if err == nil {
decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, GetComposedCode(&c.Controller, params.JsCode), params.Data, params.Iv)
if err = err2; err == nil {