/// <summary>
        /// 通过openid 获取用的基本信息
        /// </summary>
        /// <param name="Openid"></param>
        /// <returns></returns>
        public WeChatUser GetUserInfoOpenid(string AppId, string Openid)
        {
            WeChatUser UModel = new WeChatUser();

            Senparc.Weixin.MP.Entities.WeixinUserInfoResult Model = Senparc.Weixin.MP.CommonAPIs.CommonApi.GetUserInfo(WeChatDeploy.GetAccessToken(AppId), Openid);
            UModel.HeadImgUrl = Model.headimgurl ?? "";
            UModel.NickName   = Model.nickname ?? "";
            UModel.OpenID     = Model.openid;
            UModel.Sex        = Model.sex;
            UModel.City       = Model.city ?? "";
            UModel.Country    = Model.country ?? "";
            UModel.Privilege  = new string[0];
            UModel.Province   = Model.province ?? "";
            UModel.UnionID    = Model.unionid ?? "";
            return(UModel);
        }
        /// <summary>
        /// 获取用户的信息
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        public WeChatUser GetUserInfo(string AppId, string Code)
        {
            WeChatUser UModel = new WeChatUser();

            Senparc.Weixin.MP.AdvancedAPIs.OAuth.OAuthAccessTokenResult TokenResult = Senparc.Weixin.MP.AdvancedAPIs.OAuthApi.GetAccessToken(AppId, WeChatDeploy.GetDeploy()[AppId], Code);
            Senparc.Weixin.MP.AdvancedAPIs.OAuth.OAuthUserInfo          Model       = Senparc.Weixin.MP.AdvancedAPIs.OAuthApi.GetUserInfo(TokenResult.access_token, TokenResult.openid);
            UModel.HeadImgUrl = Model.headimgurl ?? "";
            UModel.NickName   = Model.nickname ?? "";
            UModel.OpenID     = Model.openid;
            UModel.Sex        = Model.sex;
            UModel.City       = Model.city ?? "";
            UModel.Country    = Model.country ?? "";
            UModel.Privilege  = Model.privilege ?? new string[0];
            UModel.Province   = Model.province ?? "";
            UModel.UnionID    = Model.unionid ?? "";
            return(UModel);
        }