auth
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user