Пример #1
0
        public MiniCode2Session AuthUserOpenId()
        {
            string           code   = Request.Query["code"];
            MiniCode2Session result = null;

            if (!string.IsNullOrEmpty(code))
            {
                result = WXApi.GetOpenIdForWxMini(code);
                result.HasExistInWX = _UserSrv.ExistUnionId(result.unionid);

                return(result);
            }
            return(new MiniCode2Session());
        }